compat test: NaN checks use Suite.check; host: raise LuaJIT trace / mcode limits (opt-out FORMATS_NO_JIT_TUNE)

This commit is contained in:
4DBug committed 2026-10-31 09:07:40 -05:00
1 parent 94f9a68d50
commit 8e9309a06f
2 files changed
+9 -2

No files matched your search

+7
View File
@@ -39,5 +39,12 @@ elseif name == "luajit" then
else
host = require("@formats/host/Luau")
end
-- LuaJIT (plain or LÖVE): the big decoders (Opus CELT, H.264, ...) outgrow the default 1000 traces / 8 MB of machine
-- code and fall back to the interpreter (CELT runs about 2.5x faster with these limits). Raising the limits only
-- allows more traces; set _G.FORMATS_NO_JIT_TUNE = true before requiring the library to leave them alone.
if G.jit ~= nil and type(G.jit.opt) == "table" and not G.FORMATS_NO_JIT_TUNE then
pcall(G.jit.opt.start, "maxtrace=8000", "maxmcode=65536")
end
local _ = Err
return host