[compiler-rt] [compiler-rt][fuchsia] Preallocate a vmar for sanitizer internals (PR #75256)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 10:54:34 PST 2024


================
@@ -357,7 +406,7 @@ void *MmapAlignedOrDieOnFatalError(uptr size, uptr alignment,
 }
 
 void UnmapOrDie(void *addr, uptr size) {
-  UnmapOrDieVmar(addr, size, _zx_vmar_root_self());
+  UnmapOrDieVmar(addr, size, gSanitizerHeapVmar);
----------------
PiJoules wrote:

This dispatches to `UnmapOrDieVmar` above which contains that fallback logic. When this is called, it should try unmapping from `gSanitizerHeapVmar` first then try unmapping again in the root.

https://github.com/llvm/llvm-project/pull/75256


More information about the llvm-commits mailing list