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
Diff Detail
Event Timeline
lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
797 | I think this will break statically-linked libstdc++ (which we do have in some contexts). |
I see. Changing patch to use #ifdef to use TSAN_INTERCEPTOR on OS X, and the current way on other platforms.
LGTM with a nit
lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
789 | please add a comment for future generations as to why we are doing this |
please add a comment for future generations as to why we are doing this