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 {
2424void InitializeAsanInterceptors ();
2525void InitializePlatformInterceptors ();
2626
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 (); \
3330 } while (0 )
3431
3532} // namespace __asan
Original file line number Diff line number Diff line change @@ -520,7 +520,9 @@ static void AsanInitInternal() {
520520// Initialize as requested from some part of ASan runtime library (interceptors,
521521// allocator, etc).
522522void AsanInitFromRtl () {
523- AsanInitInternal ();
523+ CHECK (!AsanInitIsRunning ());
524+ if (UNLIKELY (!AsanInited ()))
525+ AsanInitInternal ();
524526}
525527
526528#if ASAN_DYNAMIC
You can’t perform that action at this time.
0 commit comments