Created
June 26, 2019 16:37
-
-
Save tianchaijz/4a96046684687e4c14fa9e41db1fab43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
https://zhuanlan.zhihu.com/p/26528101 | |
完整的LuaJIT的exe版本都会带一个JIT目录,下面有大量LuaJIT的工具,其中有一个v.lua, | |
这是LuaJIT Verbose Mode(另外还有一个很重要的叫p.lua,luajit profiler,后面会提到), | |
可以追踪LuaJIT运行过程中的一些细节,其中就可以帮你追踪JIT失败的情况。 | |
当你看到以下错误的时候,说明你遇到了JIT失败: | |
failed to allocate mcode memory,对应错误3.1 | |
NYI: register coalescing too complex,对应错误3.2 | |
NYI: C function,对应错误3.3(这个错误在2.1.0beta2中已经移除,因为有trace stitch) | |
NYI: bytecode,对应错误3.4 | |
--]] | |
local verbo = require("jit.v") | |
verbo.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment