File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,9 @@ namespace __asan {
24
24
void InitializeAsanInterceptors ();
25
25
void InitializePlatformInterceptors ();
26
26
27
- #define ENSURE_ASAN_INITED () \
28
- do { \
29
- CHECK (!AsanInitIsRunning ()); \
30
- if (UNLIKELY (!AsanInited ())) { \
31
- AsanInitFromRtl (); \
32
- } \
27
+ #define ENSURE_ASAN_INITED () \
28
+ do { \
29
+ AsanInitFromRtl (); \
33
30
} while (0 )
34
31
35
32
} // namespace __asan
Original file line number Diff line number Diff line change @@ -520,7 +520,9 @@ static void AsanInitInternal() {
520
520
// Initialize as requested from some part of ASan runtime library (interceptors,
521
521
// allocator, etc).
522
522
void AsanInitFromRtl () {
523
- AsanInitInternal ();
523
+ CHECK (!AsanInitIsRunning ());
524
+ if (UNLIKELY (!AsanInited ()))
525
+ AsanInitInternal ();
524
526
}
525
527
526
528
#if ASAN_DYNAMIC
You can’t perform that action at this time.
0 commit comments