Browse Source

jitsetup: Also disable JIT on ARM32 platform.

Miku AuahDark 1 year ago
parent
commit
6a298a74c2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/modules/love/jitsetup.lua

+ 3 - 3
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