Skip to content

Commit aa179bf

Browse files
committed
Force exit to VM
1 parent f7d0a3e commit aa179bf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ext/opcache/jit/zend_jit_x86.dasc

+7-5
Original file line numberDiff line numberDiff line change
@@ -3617,11 +3617,13 @@ static int zend_jit_trace_handler(dasm_State **Dst, const zend_op_array *op_arra
36173617
opline->opcode == ZEND_GENERATOR_CREATE) {
36183618

36193619
if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
3620-
#if 0
3621-
/* this check should be handled by the following OPLINE guard or jmp [IP] */
3622-
| cmp IP, zend_jit_halt_op
3623-
| je ->trace_halt
3624-
#endif
3620+
if (trace->op != ZEND_JIT_TRACE_END ||
3621+
(trace->stop != ZEND_JIT_TRACE_STOP_RETURN &&
3622+
trace->stop != ZEND_JIT_TRACE_STOP_INTERPRETER)) {
3623+
/* this check may be handled by the following OPLINE guard or jmp [IP] */
3624+
| cmp IP, zend_jit_halt_op
3625+
| je ->trace_halt
3626+
}
36253627
} else if (GCC_GLOBAL_REGS) {
36263628
| test IP, IP
36273629
| je ->trace_halt

0 commit comments

Comments
 (0)