[PATCH] D70760: scudo: Call setCurrentTSD(nullptr) when bringing down the TSD registry in tests.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 10:00:11 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf30fe16d4902: scudo: Call setCurrentTSD(nullptr) when bringing down the TSD registry in tests. (authored by pcc).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70760

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


Index: compiler-rt/lib/scudo/standalone/tsd_shared.h
===================================================================
--- compiler-rt/lib/scudo/standalone/tsd_shared.h
+++ compiler-rt/lib/scudo/standalone/tsd_shared.h
@@ -50,6 +50,7 @@
   void unmapTestOnly() {
     unmap(reinterpret_cast<void *>(TSDs),
           sizeof(TSD<Allocator>) * NumberOfTSDs);
+    setCurrentTSD(nullptr);
   }
 
   ALWAYS_INLINE void initThreadMaybe(Allocator *Instance,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70760.231293.patch
Type: text/x-patch
Size: 454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191127/29d505c8/attachment.bin>


More information about the llvm-commits mailing list