[NFC] Update tsan_rtl.h comment after D142039
authorHan Zhu <zhuhan7737@gmail.com>
Tue, 24 Jan 2023 18:46:31 +0000 (10:46 -0800)
committerHan Zhu <zhuhan7737@gmail.com>
Tue, 24 Jan 2023 18:47:02 +0000 (10:47 -0800)
compiler-rt/lib/tsan/rtl/tsan_rtl.h

index e02ce5a..a5606db 100644 (file)
@@ -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);