Skip to content

Commit b65d366

Browse files
committed
Better condition
1 parent 9524849 commit b65d366

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8338,8 +8338,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
83388338
if (func) {
83398339
if (func->op_array.fn_flags & ZEND_ACC_IMMUTABLE) {
83408340
| MEM_OP2_2_ZTS add, r2, aword, compiler_globals, map_ptr_base, r1
8341-
} else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_OPT_SCRIPT
8342-
&& JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) {
8341+
} else if (!zend_accel_in_shm(func->op_array.opcodes)) {
83438342
/* the called op_array may be not persisted yet */
83448343
| test r2, 1
83458344
| jz >1

0 commit comments

Comments
 (0)