[compiler-rt] [scudo] Don't preserve space for regions at init() (DO NOT MERGE) (PR #74531)

Fabio D'Urso via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 09:42:45 PST 2024


================
@@ -129,7 +129,7 @@ void MemMapLinux::releaseAndZeroPagesToOSImpl(uptr From, uptr Size) {
 bool ReservedMemoryLinux::createImpl(uptr Addr, uptr Size, const char *Name,
                                      uptr Flags) {
   ReservedMemoryLinux::MemMapT MemMap;
-  if (!MemMap.map(Addr, Size, Name, Flags | MAP_NOACCESS))
----------------
fabio-d wrote:

I think the choice of whether to pass `MAP_ALLOWNOMEM` or not can be left to the caller, like we do in `ReservedMemoryFuchsia::createImpl`

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


More information about the llvm-commits mailing list