diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2018-07-19 17:10:19 -0700 |
---|---|---|
committer | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2018-07-19 18:22:30 -0700 |
commit | 9d353bef1ed72638b2fea0fbe1b01c6763006e18 (patch) | |
tree | 474bb8380eb762e2483b6fdbd1935082e6384446 /libutils/RefBase.cpp | |
parent | f14813368cfa5d23eb3eb022377ded718d33fcd4 (diff) |
libutils: Fix the fatal error to non fatal
Convert fatal log message to non fatal log message, if the weak
reference is decremented to the max count.
Bug: 111479780
CRs-Fixed: 2278739
Change-Id: I7225ee4a2375811fb05053d4c84fc21e30d12391
Diffstat (limited to 'libutils/RefBase.cpp')
-rw-r--r-- | libutils/RefBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/RefBase.cpp b/libutils/RefBase.cpp index 8bccb0f5c..8eecaceeb 100644 --- a/libutils/RefBase.cpp +++ b/libutils/RefBase.cpp @@ -500,7 +500,7 @@ void RefBase::weakref_type::decWeak(const void* id) weakref_impl* const impl = static_cast<weakref_impl*>(this); impl->removeWeakRef(id); const int32_t c = impl->mWeak.fetch_sub(1, std::memory_order_release); - LOG_ALWAYS_FATAL_IF(BAD_WEAK(c), "decWeak called on %p too many times", + ALOGW_IF(BAD_WEAK(c), "decWeak called on %p too many times", this); if (c != 1) return; atomic_thread_fence(std::memory_order_acquire); |