From 5ae01fe4d92de2b94bee45f7b1d3f8df322bab40 Mon Sep 17 00:00:00 2001 From: daan Date: Sun, 6 Sep 2020 09:39:16 -0700 Subject: [PATCH] experiment with commit strategy on macOS --- src/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.c b/src/os.c index 4696a4d7..6e8f6149 100644 --- a/src/os.c +++ b/src/os.c @@ -715,7 +715,7 @@ static bool mi_os_commitx(void* addr, size_t size, bool commit, bool conservativ } #elif defined(__wasi__) // WebAssembly guests can't control memory protection - #elif defined(MAP_FIXED) + #elif defined(MAP_FIXED) && !defined(__APPLE__) if (!commit) { // use mmap with MAP_FIXED to discard the existing memory (and reduce commit charge) const int fd = mi_unix_mmap_fd();