[PATCH] D121858: [scudo] Don't unmap other low memory pages if mapping doesn't exist

Dominic Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 10:17:59 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4787e5c34ec8: [scudo] Don't unmap other low memory pages if mapping doesn't exist (authored by ddcc).

Changed prior to commit:
  https://reviews.llvm.org/D121858?vs=415983&id=416230#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121858

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


Index: compiler-rt/lib/scudo/standalone/primary64.h
===================================================================
--- compiler-rt/lib/scudo/standalone/primary64.h
+++ compiler-rt/lib/scudo/standalone/primary64.h
@@ -89,7 +89,9 @@
       RegionInfo *Region = getRegionInfo(I);
       *Region = {};
     }
-    unmap(reinterpret_cast<void *>(PrimaryBase), PrimarySize, UNMAP_ALL, &Data);
+    if (PrimaryBase)
+      unmap(reinterpret_cast<void *>(PrimaryBase), PrimarySize, UNMAP_ALL,
+            &Data);
     PrimaryBase = 0U;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121858.416230.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/f5eec22d/attachment.bin>


More information about the llvm-commits mailing list