On Mac OS X, use mmap(MAP_FIXED) only for i386.
authorTaylor R Campbell <campbell@mumble.net>
Mon, 3 Jun 2013 19:17:41 +0000 (19:17 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Mon, 3 Jun 2013 19:17:41 +0000 (19:17 +0000)
src/microcode/ux.h

index 7c002ab8744da9017f00fc96e31e0de333977afe..2c4866ef8ebcfa198c80132378e4ade9cfc9bdaf 100644 (file)
@@ -129,7 +129,11 @@ USA.
 #ifdef HAVE_SYS_MMAN_H
 #  include <sys/mman.h>
 #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