Skip to content

Commit f06f260

Browse files
committed
Revert "Fixed crash if jit.trigger is counter based with preload scripts"
This reverts commit 3d4e23a.
1 parent ded0b34 commit f06f260

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/opcache/zend_persist.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,9 +1144,7 @@ zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script
11441144

11451145
#ifdef HAVE_JIT
11461146
if (ZCG(jit_enabled) && for_shm) {
1147-
if (ZEND_JIT_LEVEL(ZCG(accel_directives).jit) >= ZEND_JIT_LEVEL_OPT_SCRIPT &&
1148-
(ZEND_JIT_TRIGGER(ZCG(accel_directives).jit) == ZEND_JIT_ON_SCRIPT_LOAD ||
1149-
ZEND_JIT_TRIGGER(ZCG(accel_directives).jit) == ZEND_JIT_ON_DOC_COMMENT)) {
1147+
if (ZEND_JIT_LEVEL(ZCG(accel_directives).jit) >= ZEND_JIT_LEVEL_OPT_SCRIPT) {
11501148
zend_jit_script(&script->script);
11511149
}
11521150
zend_jit_protect();

0 commit comments

Comments
 (0)