Skip to content

Instantly share code, notes, and snippets.

@postwait
Created October 16, 2014 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postwait/84c141c90e596debf692 to your computer and use it in GitHub Desktop.
Save postwait/84c141c90e596debf692 to your computer and use it in GitHub Desktop.
smartos workie?
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