This patch fixes the __cxa_guard_acquire, __cxa_guard_release and __cxa_guard_abort interceptors on OS X. They apparently work on Linux just by having the same name, but on OS X, we actually need to use TSAN_INTERCEPTOR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
790 ↗ | (On Diff #40763) | I think this will break statically-linked libstdc++ (which we do have in some contexts). |
Comment Actions
I see. Changing patch to use #ifdef to use TSAN_INTERCEPTOR on OS X, and the current way on other platforms.
Comment Actions
LGTM with a nit
lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
789 ↗ | (On Diff #40773) | please add a comment for future generations as to why we are doing this |