[compiler-rt] 7a2f3d1 - [NFC] Update tsan_rtl.h comment after D142039

Han Zhu via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 10:47:15 PST 2023


Author: Han Zhu
Date: 2023-01-24T10:47:02-08:00
New Revision: 7a2f3d1886141c609e8e30745624fb4e72f0603b

URL: https://github.com/llvm/llvm-project/commit/7a2f3d1886141c609e8e30745624fb4e72f0603b
DIFF: https://github.com/llvm/llvm-project/commit/7a2f3d1886141c609e8e30745624fb4e72f0603b.diff

LOG: [NFC] Update tsan_rtl.h comment after D142039

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl/tsan_rtl.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.h b/compiler-rt/lib/tsan/rtl/tsan_rtl.h
index e02ce5a52ade1..a5606dbc7f882 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.h
@@ -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);


        


More information about the llvm-commits mailing list