Skip to content

Commit 5e10aa4

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Discard disasm symbols on opcache restart
2 parents e8f2fe6 + 3e076dd commit 5e10aa4

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
@@ -5186,6 +5186,13 @@ ZEND_EXT_API void zend_jit_restart(void)
51865186
}
51875187

51885188
zend_jit_protect();
5189+
5190+
#ifdef HAVE_DISASM
5191+
if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_ASM_STUBS)) {
5192+
zend_jit_disasm_shutdown();
5193+
zend_jit_disasm_init();
5194+
}
5195+
#endif
51895196
}
51905197
}
51915198

0 commit comments

Comments
 (0)