[PATCH] D39618: Correct detection of a thread termination
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 3 14:13:01 PDT 2017
krytarowski added a comment.
For the reference: late fixup committed in SVN http://llvm.org/viewvc/llvm-project?rev=317369&view=rev
Index: lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- lib/tsan/rtl/tsan_interceptors.cc (wersja 317367)
+++ lib/tsan/rtl/tsan_interceptors.cc (kopia robocza)
@@ -2451,8 +2451,8 @@
#if SANITIZER_NETBSD
TSAN_INTERCEPTOR(void, _lwp_exit) {
SCOPED_TSAN_INTERCEPTOR(_lwp_exit);
+ DestroyThreadState();
REAL(_lwp_exit)();
- DestroyThreadState();
}
#define TSAN_MAYBE_INTERCEPT__LWP_EXIT TSAN_INTERCEPT(_lwp_exit)
#else
Repository:
rL LLVM
https://reviews.llvm.org/D39618
More information about the llvm-commits
mailing list