From b65d366bf8a7c6ecac4a9fbd51d3d7cfaf0ec443 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 20 May 2020 23:05:48 +0300 Subject: [PATCH] Better condition --- ext/opcache/jit/zend_jit_x86.dasc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index c98c443874..a665ee7eef 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -8338,8 +8338,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend if (func) { if (func->op_array.fn_flags & ZEND_ACC_IMMUTABLE) { | MEM_OP2_2_ZTS add, r2, aword, compiler_globals, map_ptr_base, r1 - } else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_OPT_SCRIPT - && JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { + } else if (!zend_accel_in_shm(func->op_array.opcodes)) { /* the called op_array may be not persisted yet */ | test r2, 1 | jz >1 -- 2.50.1