[PATCH] [Tsan] Do not sanitize memcpy() during thread initialization on FreeBSD
Dmitry Vyukov
dvyukov at google.com
Fri Mar 13 11:22:24 PDT 2015
================
Comment at: lib/tsan/rtl/tsan_interceptors.cc:673
@@ +672,3 @@
+ // On FreeBSD we get here from libthr internals on thread initialization.
+ if (cur_thread()->shadow_stack_pos != 0) {
+ SCOPED_TSAN_INTERCEPTOR(memcpy, dst, src, size);
----------------
please add is_inited flag to ThreadState, similar to is_dead
and set it in ThreadContext::OnStarted
shadow_stack_pos check looks confusing
http://reviews.llvm.org/D8324
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list