compat test: NaN checks use Suite.check; host: raise LuaJIT trace / mcode limits (opt-out FORMATS_NO_JIT_TUNE)
This commit is contained in:
1 parent
15b742cada
commit
56f2423e2c
2 files changed
+9
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user