Skip to content

Commit b0613d1

Browse files
committed
Fixed tracing JIT for closure run_time_cache access
1 parent c599d17 commit b0613d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8419,7 +8419,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
84198419
#if ZEND_MAP_PTR_KIND == ZEND_MAP_PTR_KIND_PTR
84208420
| mov r2, aword [r2]
84218421
#elif ZEND_MAP_PTR_KIND == ZEND_MAP_PTR_KIND_PTR_OR_OFFSET
8422-
if (func) {
8422+
if (func && !(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) {
84238423
if (ZEND_MAP_PTR_IS_OFFSET(func->op_array.run_time_cache)) {
84248424
| MEM_OP2_2_ZTS add, r2, aword, compiler_globals, map_ptr_base, r1
84258425
} else if (!zend_accel_in_shm(func->op_array.opcodes)) {

0 commit comments

Comments
 (0)