From: Mike Pall Date: Wed, 11 Feb 2026 22:09:57 +0000 (+0100) Subject: x64/!LJ_GC64: The allocation limit is required for a no-JIT build, too. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff4006837792b6105e0a1743283ddde3548fc09;p=thirdparty%2FLuaJIT.git x64/!LJ_GC64: The allocation limit is required for a no-JIT build, too. Thanks to Sergey Kaplun. #1430 --- diff --git a/src/lj_alloc.c b/src/lj_alloc.c index cb704f7b..f4d3a7da 100644 --- a/src/lj_alloc.c +++ b/src/lj_alloc.c @@ -100,8 +100,8 @@ #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. */