[libcxx-commits] [libcxxabi] r357956 - Fix incorrect change during refactoring.
Eric Fiselier via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 8 16:20:09 PDT 2019
Author: ericwf
Date: Mon Apr 8 16:20:09 2019
New Revision: 357956
URL: http://llvm.org/viewvc/llvm-project?rev=357956&view=rev
Log:
Fix incorrect change during refactoring.
cxa_guard_abort should still broadcast on exit.
Modified:
libcxxabi/trunk/src/cxa_guard.cpp
Modified: libcxxabi/trunk/src/cxa_guard.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_guard.cpp?rev=357956&r1=357955&r2=357956&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_guard.cpp (original)
+++ libcxxabi/trunk/src/cxa_guard.cpp Mon Apr 8 16:20:09 2019
@@ -215,7 +215,7 @@ _LIBCXXABI_FUNC_VIS void __cxa_guard_rel
}
_LIBCXXABI_FUNC_VIS void __cxa_guard_abort(guard_type *raw_guard_object) {
- GlobalMutexGuard gmutex("__cxa_guard_abort", OnRelease::UNLOCK);
+ GlobalMutexGuard gmutex("__cxa_guard_abort", OnRelease::UNLOCK_AND_BROADCAST);
GuardObject guard(raw_guard_object);
guard.store(GuardValue::ZERO());
}
More information about the libcxx-commits
mailing list