Skip to content

Commit c5364b8

Browse files
committed
Fix crashes after opcache restart
1 parent 20680b8 commit c5364b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5181,6 +5181,10 @@ ZEND_EXT_API void zend_jit_restart(void)
51815181
if (dasm_buf) {
51825182
zend_jit_unprotect();
51835183

5184+
#if ZEND_JIT_TARGET_ARM64
5185+
memset(dasm_labels_veneers, 0, sizeof(void*) * ZEND_MM_ALIGNED_SIZE_EX(zend_lb_MAX, DASM_ALIGNMENT));
5186+
#endif
5187+
51845188
/* restore JIT buffer pos */
51855189
dasm_ptr[0] = dasm_ptr[1];
51865190

0 commit comments

Comments
 (0)