Created
October 16, 2014 18:34
-
-
Save postwait/84c141c90e596debf692 to your computer and use it in GitHub Desktop.
smartos workie?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/LuaJIT/src/lj_alloc.c b/src/LuaJIT/src/lj_alloc.c | |
index cd8dfc1..992d792 100644 | |
--- a/src/LuaJIT/src/lj_alloc.c | |
+++ b/src/LuaJIT/src/lj_alloc.c | |
@@ -177,7 +177,7 @@ static LJ_AINLINE int CALL_MUNMAP(void *ptr, size_t size) | |
#if LJ_64 | |
/* 64 bit mode needs special support for allocating memory in the lower 2GB. */ | |
-#if defined(MAP_32BIT) | |
+#if defined(MAP_32BIT) && !defined(BROKEN_MMAP_HINTS) | |
/* Actually this only gives us max. 1GB in current Linux kernels. */ | |
static LJ_AINLINE void *CALL_MMAP(size_t size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment