Skip to content

Commit

Permalink
jitsetup: Also disable JIT on ARM32 platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Nov 27, 2023
1 parent f4f3105 commit 6a298a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/love/jitsetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6a298a7

Please sign in to comment.