Skip to content

Commit efcffc9

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Force exit to VM
2 parents 57a01e3 + aa179bf commit efcffc9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3636,11 +3636,13 @@ static int zend_jit_trace_handler(dasm_State **Dst, const zend_op_array *op_arra
36363636
opline->opcode == ZEND_GENERATOR_CREATE) {
36373637

36383638
if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
3639-
#if 0
3640-
/* this check should be handled by the following OPLINE guard or jmp [IP] */
3641-
| cmp IP, zend_jit_halt_op
3642-
| je ->trace_halt
3643-
#endif
3639+
if (trace->op != ZEND_JIT_TRACE_END ||
3640+
(trace->stop != ZEND_JIT_TRACE_STOP_RETURN &&
3641+
trace->stop != ZEND_JIT_TRACE_STOP_INTERPRETER)) {
3642+
/* this check may be handled by the following OPLINE guard or jmp [IP] */
3643+
| cmp IP, zend_jit_halt_op
3644+
| je ->trace_halt
3645+
}
36443646
} else if (GCC_GLOBAL_REGS) {
36453647
| test IP, IP
36463648
| je ->trace_halt

0 commit comments

Comments
 (0)