diff options
Diffstat (limited to 'compiler-rt/lib/tsan/rtl')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.cpp | 4 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.inc | 2 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors.h | 4 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp | 4 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl.cpp | 4 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl.h | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.cpp b/compiler-rt/lib/tsan/rtl/tsan_flags.cpp index 50632d2..efaaef8 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.cpp @@ -20,7 +20,7 @@ #include "tsan_rtl.h" #include "ubsan/ubsan_flags.h" -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO namespace __sanitizer { template <> @@ -55,7 +55,7 @@ inline bool FlagHandler<LockDuringWriteSetting>::Format(char *buffer, } } // namespace __sanitizer -#endif +#endif // SANITIZER_APPLE && !SANITIZER_GO namespace __tsan { diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.h b/compiler-rt/lib/tsan/rtl/tsan_flags.h index 477d08d..e63d7c4 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.h +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.h @@ -16,7 +16,7 @@ #include "sanitizer_common/sanitizer_flags.h" #include "sanitizer_common/sanitizer_deadlock_detector_interface.h" -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO enum LockDuringWriteSetting { kLockDuringAllWrites, kNoLockDuringWritesCurrentProcess, diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.inc b/compiler-rt/lib/tsan/rtl/tsan_flags.inc index 64cc091..77ab910 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.inc +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.inc @@ -81,7 +81,7 @@ TSAN_FLAG(bool, print_full_thread_history, false, "If set, prints thread creation stacks for the threads involved in " "the report and their ancestors up to the main thread.") -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO TSAN_FLAG(LockDuringWriteSetting, lock_during_write, kLockDuringAllWrites, "Determines whether to obtain a lock while writing logs or error " "reports. " diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.h b/compiler-rt/lib/tsan/rtl/tsan_interceptors.h index d4b65ab..f8cc8ff 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.h +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.h @@ -1,7 +1,7 @@ #ifndef TSAN_INTERCEPTORS_H #define TSAN_INTERCEPTORS_H -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO # include "sanitizer_common/sanitizer_mac.h" #endif #include "sanitizer_common/sanitizer_stacktrace.h" @@ -47,7 +47,7 @@ inline bool in_symbolizer() { inline bool MustIgnoreInterceptor(ThreadState *thr) { return !thr->is_inited || thr->ignore_interceptors || thr->in_ignored_lib -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO || (flags()->lock_during_write != kLockDuringAllWrites && thr->in_internal_write_call) #endif diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp index 0c35804..714220a 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp @@ -31,7 +31,7 @@ #include "sanitizer_common/sanitizer_tls_get_addr.h" #include "sanitizer_common/sanitizer_vector.h" #include "tsan_fd.h" -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO # include "tsan_flags.h" #endif #include "tsan_interceptors.h" @@ -1668,7 +1668,7 @@ TSAN_INTERCEPTOR(int, pthread_barrier_wait, void *b) { TSAN_INTERCEPTOR(int, pthread_once, void *o, void (*f)()) { SCOPED_INTERCEPTOR_RAW(pthread_once, o, f); -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO if (flags()->lock_during_write != kLockDuringAllWrites && cur_thread_init()->in_internal_write_call) { // This is needed to make it through process launch without hanging diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp index b8041d7..feee566 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp @@ -40,7 +40,7 @@ SANITIZER_WEAK_DEFAULT_IMPL void __tsan_test_only_on_fork() {} #endif -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO // Override weak symbol from sanitizer_common extern void __tsan_set_in_internal_write_call(bool value) { __tsan::cur_thread_init()->in_internal_write_call = value; @@ -901,7 +901,7 @@ void ForkChildAfter(ThreadState* thr, uptr pc, bool start_thread) { ThreadIgnoreSyncBegin(thr, pc); } -# if SANITIZER_APPLE +# if SANITIZER_APPLE && !SANITIZER_GO // This flag can have inheritance disabled - we are the child so act // accordingly if (flags()->lock_during_write == kNoLockDuringWritesCurrentProcess) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.h b/compiler-rt/lib/tsan/rtl/tsan_rtl.h index 77390f0..6356546 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.h +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.h @@ -236,7 +236,7 @@ struct alignas(SANITIZER_CACHE_LINE_SIZE) ThreadState { const ReportDesc *current_report; -#if SANITIZER_APPLE +#if SANITIZER_APPLE && !SANITIZER_GO bool in_internal_write_call; #endif |