[PATCH] D79130: [scudo] Initialize the allocator in setTrackAllocationStacks.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 17:19:19 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7a555958f111: [scudo] Initialize the allocator in setTrackAllocationStacks. (authored by eugenis).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79130/new/

https://reviews.llvm.org/D79130

Files:
  compiler-rt/lib/scudo/standalone/combined.h


Index: compiler-rt/lib/scudo/standalone/combined.h
===================================================================
--- compiler-rt/lib/scudo/standalone/combined.h
+++ compiler-rt/lib/scudo/standalone/combined.h
@@ -721,6 +721,7 @@
   void disableMemoryTagging() { Primary.disableMemoryTagging(); }
 
   void setTrackAllocationStacks(bool Track) {
+    initThreadMaybe();
     Options.TrackAllocationStacks = Track;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79130.261105.patch
Type: text/x-patch
Size: 426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/698f61ab/attachment-0001.bin>


More information about the llvm-commits mailing list