Ver código fonte

Respect jit.off() on pending trace exit.

Thanks to Sergey Kaplun. #1134
Mike Pall 1 ano atrás
pai
commit
7dbe545933
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/lj_trace.c

+ 1 - 1
src/lj_trace.c

@@ -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)->hookmask & HOOK_GC))
       lj_gc_step(L);  /* Exited because of GC: drive GC forward. */
-  } else {
+  } else if ((J->flags & JIT_F_ON)) {
     trace_hotside(J, pc);
   }
   if (bc_op(*pc) == BC_JLOOP) {