From 5a05fd446a6656096fbff2ed1c464b70b57ec6a3 Mon Sep 17 00:00:00 2001 From: Daan Date: Sun, 14 Nov 2021 14:38:24 -0800 Subject: [PATCH] fix compilation on macos --- src/os.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/os.c b/src/os.c index 169680a1..3113a098 100644 --- a/src/os.c +++ b/src/os.c @@ -472,13 +472,7 @@ static void* mi_unix_mmap(void* addr, size_t size, size_t try_alignment, int pro } #if defined(PROT_MAX) protect_flags |= PROT_MAX(PROT_READ | PROT_WRITE); // BSD - #endif - #if defined(VM_MAKE_TAG) - // macOS: tracking anonymous page with a specific ID. (All up to 98 are taken officially but LLVM sanitizers had taken 99) - int os_tag = (int)mi_option_get(mi_option_os_tag); - if (os_tag < 100 || os_tag > 255) { os_tag = 100; } - fd = VM_MAKE_TAG(os_tag); - #endif + #endif // huge page allocation if ((large_only || use_large_os_page(size, try_alignment)) && allow_large) { static _Atomic(size_t) large_page_try_ok; // = 0;