[PATCH] D46981: [asan] Restore check removed by r332033

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 15:25:11 PDT 2018


waltl created this revision.
waltl added reviewers: vitalybuka, eugenis, alekseyshl, jgorbe.
Herald added a subscriber: kubamracek.

Needed by fiber handling code, and possibly other code paths.


Repository:
  rL LLVM

https://reviews.llvm.org/D46981

Files:
  compiler-rt/lib/asan/asan_thread.h


Index: compiler-rt/lib/asan/asan_thread.h
===================================================================
--- compiler-rt/lib/asan/asan_thread.h
+++ compiler-rt/lib/asan/asan_thread.h
@@ -117,6 +117,8 @@
       return nullptr;
     if (atomic_load(&stack_switching_, memory_order_relaxed))
       return nullptr;
+    if (!has_fake_stack())
+      return AsyncSignalSafeLazyInitFakeStack();
     return fake_stack_;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46981.147199.patch
Type: text/x-patch
Size: 427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/c3357c0c/attachment.bin>


More information about the llvm-commits mailing list