mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 16:11:27 +08:00
[NFC] Update tsan_rtl.h comment after D142039
This commit is contained in:
@@ -680,7 +680,8 @@ ALWAYS_INLINE
|
||||
void LazyInitialize(ThreadState *thr) {
|
||||
// If we can use .preinit_array, assume that __tsan_init
|
||||
// called from .preinit_array initializes runtime before
|
||||
// any instrumented code except ANDROID.
|
||||
// any instrumented code except when tsan is used as a
|
||||
// shared library.
|
||||
#if (!SANITIZER_CAN_USE_PREINIT_ARRAY || defined(SANITIZER_SHARED))
|
||||
if (UNLIKELY(!is_initialized))
|
||||
Initialize(thr);
|
||||
|
||||
Reference in New Issue
Block a user