diff options
author | Fangrui Song <maskray@google.com> | 2021-06-09 20:39:26 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-06-09 20:39:26 +0000 |
commit | 29d50b4282534f333d6e86bbd29e758cb8bc5bd1 (patch) | |
tree | ce989be8ba496780a34e87965f9cb1c2be6fd8e4 | |
parent | 36169abc786665ac8e2ce9045238f4d5005369db (diff) | |
parent | bda6af857311e342e309e7f74b2e3561c9fbd31e (diff) | |
download | libcxxabi-29d50b4282534f333d6e86bbd29e758cb8bc5bd1.tar.gz |
[libcxxabi] __cxa_guard_require: test guard byte with != 0 instead of == 1 am: 6f1796448f am: bda6af8573
Original change: https://android-review.googlesource.com/c/platform/external/libcxxabi/+/1727437
Change-Id: I545308a3eed105c4e198d5b522c31603589f1355
-rw-r--r-- | src/cxa_guard_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxa_guard_impl.h b/src/cxa_guard_impl.h index 412099e..58c5dc5 100644 --- a/src/cxa_guard_impl.h +++ b/src/cxa_guard_impl.h @@ -170,7 +170,7 @@ public: /// Implements __cxa_guard_acquire AcquireResult cxa_guard_acquire() { AtomicInt<uint8_t> guard_byte(guard_byte_address); - if (guard_byte.load(std::_AO_Acquire) == COMPLETE_BIT) + if (guard_byte.load(std::_AO_Acquire) != UNSET) return INIT_IS_DONE; return derived()->acquire_init_byte(); } |