From 6a298a74c22548d1a7e259a5f9363c971362bf1f Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Mon, 27 Nov 2023 12:47:23 +0800 Subject: [PATCH] jitsetup: Also disable JIT on ARM32 platform. --- src/modules/love/jitsetup.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/love/jitsetup.lua b/src/modules/love/jitsetup.lua index 239f9f850..296ba6c22 100644 --- a/src/modules/love/jitsetup.lua +++ b/src/modules/love/jitsetup.lua @@ -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