]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64/!LJ_GC64: The allocation limit is required for a no-JIT build, too.
authorMike Pall <mike>
Wed, 11 Feb 2026 22:09:57 +0000 (23:09 +0100)
committerMike Pall <mike>
Wed, 11 Feb 2026 22:09:57 +0000 (23:09 +0100)
Thanks to Sergey Kaplun. #1430

src/lj_alloc.c

index cb704f7b3f5b18a0c702610fbfdf24c8b6a68acb..f4d3a7da69cdf23ffd9cda38eff9fd6bdacd5e54 100644 (file)
 
 #if LJ_GC64
 #define LJ_ALLOC_MBITS         47      /* 128 TB in LJ_GC64 mode. */
-#elif LJ_TARGET_X64 && LJ_HASJIT
-/* Due to limitations in the x64 compiler backend. */
+#elif LJ_TARGET_X64
+/* Due to limitations in the x64 non-GC64 VM. */
 #define LJ_ALLOC_MBITS         31      /* 2 GB on x64 with !LJ_GC64. */
 #else
 #define LJ_ALLOC_MBITS         32      /* 4 GB on other archs with !LJ_GC64. */