aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2026-02-11 23:09:57 +0100
committerMike Pall <mike>2026-02-11 23:09:57 +0100
commiteff4006837792b6105e0a1743283ddde3548fc09 (patch)
tree6fd5480ada510f5f55543b403aa6e03bd06dd0d0 /src
parent2aec641e01ab80e86ea75d944c0919fa6c03c37c (diff)
downloadluajit-eff4006837792b6105e0a1743283ddde3548fc09.tar.gz
luajit-eff4006837792b6105e0a1743283ddde3548fc09.tar.bz2
luajit-eff4006837792b6105e0a1743283ddde3548fc09.zip
x64/!LJ_GC64: The allocation limit is required for a no-JIT build, too.
Thanks to Sergey Kaplun. #1430
Diffstat (limited to 'src')
-rw-r--r--src/lj_alloc.c4
1 files changed, 2 insertions, 2 deletions
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 @@
100 100
101#if LJ_GC64 101#if LJ_GC64
102#define LJ_ALLOC_MBITS 47 /* 128 TB in LJ_GC64 mode. */ 102#define LJ_ALLOC_MBITS 47 /* 128 TB in LJ_GC64 mode. */
103#elif LJ_TARGET_X64 && LJ_HASJIT 103#elif LJ_TARGET_X64
104/* Due to limitations in the x64 compiler backend. */ 104/* Due to limitations in the x64 non-GC64 VM. */
105#define LJ_ALLOC_MBITS 31 /* 2 GB on x64 with !LJ_GC64. */ 105#define LJ_ALLOC_MBITS 31 /* 2 GB on x64 with !LJ_GC64. */
106#else 106#else
107#define LJ_ALLOC_MBITS 32 /* 4 GB on other archs with !LJ_GC64. */ 107#define LJ_ALLOC_MBITS 32 /* 4 GB on other archs with !LJ_GC64. */