From: Taylor R Campbell Date: Mon, 3 Jun 2013 19:17:41 +0000 (+0000) Subject: On Mac OS X, use mmap(MAP_FIXED) only for i386. X-Git-Tag: release-9.2.0~169 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0fd3fbddbf0f416bc45a6cd38d001484c4c18c40;p=mit-scheme.git On Mac OS X, use mmap(MAP_FIXED) only for i386. --- 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