projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62aa19a
)
[NFC] Update tsan_rtl.h comment after D142039
author
Han Zhu
<zhuhan7737@gmail.com>
Tue, 24 Jan 2023 18:46:31 +0000
(10:46 -0800)
committer
Han Zhu
<zhuhan7737@gmail.com>
Tue, 24 Jan 2023 18:47:02 +0000
(10:47 -0800)
compiler-rt/lib/tsan/rtl/tsan_rtl.h
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_rtl.h
b/compiler-rt/lib/tsan/rtl/tsan_rtl.h
index
e02ce5a
..
a5606db
100644
(file)
--- 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);