Skip to content

Commit 3e076dd

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Discard disasm symbols on opcache restart
2 parents 8cd1b83 + cefb228 commit 3e076dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5203,6 +5203,13 @@ ZEND_EXT_API void zend_jit_restart(void)
52035203
}
52045204

52055205
zend_jit_protect();
5206+
5207+
#ifdef HAVE_DISASM
5208+
if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_ASM_STUBS)) {
5209+
zend_jit_disasm_shutdown();
5210+
zend_jit_disasm_init();
5211+
}
5212+
#endif
52065213
}
52075214
}
52085215

0 commit comments

Comments
 (0)