jitsetup: Also disable JIT on ARM32 platform.

This commit is contained in:
Miku AuahDark
2023-11-27 12:47:23 +08:00
parent f4f3105ccd
commit 6a298a74c2
+3 -3
View File
@@ -33,9 +33,9 @@ jit.opt.start("maxtrace=2000", "maxrecord=8000")
-- and higher than the default (512) because that's already too low.
jit.opt.start("maxmcode=16384")
if jit.arch == "arm64" then
if jit.arch == "arm64" or jit.arch == "arm" then
-- https://github.com/LuaJIT/LuaJIT/issues/285
-- LuaJIT 2.1 on arm64 currently (as of commit b4b2dce) can only use memory
-- LuaJIT 2.1 on arm(64) currently (as of commit b4b2dce) can only use memory
-- for JIT compilation within a certain short range. Other libraries such as
-- SDL can take all the usable space in that range and cause attempts at JIT
-- compilation to both fail and take a long time.
@@ -63,7 +63,7 @@ if jit.arch == "arm64" then
jit.opt.start("sizemcode=128")
for i=1, 100 do end
-- Actually just turn the whole thing off for arm64. It's very hard to get
-- Actually just turn the whole thing off for arm(64). It's very hard to get
-- reliable performance in non-trivial games even with the above workaround.
jit.off()
else