mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Respect jit.off() on pending trace exit.
Thanks to Sergey Kaplun. #1134
This commit is contained in:
parent
c42c62e71a
commit
7dbe545933
@ -804,7 +804,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
|
|||||||
if (G(L)->gc.state == GCSatomic || G(L)->gc.state == GCSfinalize) {
|
if (G(L)->gc.state == GCSatomic || G(L)->gc.state == GCSfinalize) {
|
||||||
if (!(G(L)->hookmask & HOOK_GC))
|
if (!(G(L)->hookmask & HOOK_GC))
|
||||||
lj_gc_step(L); /* Exited because of GC: drive GC forward. */
|
lj_gc_step(L); /* Exited because of GC: drive GC forward. */
|
||||||
} else {
|
} else if ((J->flags & JIT_F_ON)) {
|
||||||
trace_hotside(J, pc);
|
trace_hotside(J, pc);
|
||||||
}
|
}
|
||||||
if (bc_op(*pc) == BC_JLOOP) {
|
if (bc_op(*pc) == BC_JLOOP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user