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

Roland McGrath via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 17:35:21 PST 2024


================
@@ -129,6 +129,55 @@ uptr GetMaxVirtualAddress() { return GetMaxUserVirtualAddress(); }
 
 bool ErrorIsOOM(error_t err) { return err == ZX_ERR_NO_MEMORY; }
 
+// For any sanitizer internal that needs to map something which can be unmmaped
+// later, first attempt to map to a pre-allocated vmar. This helps reduce
----------------
frobtech wrote:

I find it more readable to use caps for acronyms like VMAR.


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


More information about the llvm-commits mailing list