From 0fd3fbddbf0f416bc45a6cd38d001484c4c18c40 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 3 Jun 2013 19:17:41 +0000 Subject: [PATCH] On Mac OS X, use mmap(MAP_FIXED) only for i386. --- src/microcode/ux.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/microcode/ux.h b/src/microcode/ux.h index 7c002ab87..2c4866ef8 100644 --- a/src/microcode/ux.h +++ b/src/microcode/ux.h @@ -129,7 +129,11 @@ USA. #ifdef HAVE_SYS_MMAN_H # include #endif -#ifdef __APPLE__ + +/* On Mac OS X/i386, we instruct the linker to reserve all the usable + low virtual address space for us, so we can safely use + mmap(MAP_FIXED) to map the heap. */ +#if ((defined (__APPLE__)) && (defined (__IA32__))) # define USE_MAP_FIXED 1 #endif -- 2.25.1