1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
  Fix crashes after opcache restart
This commit is contained in:
Dmitry Stogov
2022-10-11 14:23:59 +03:00
+4
View File
@@ -5164,6 +5164,10 @@ ZEND_EXT_API void zend_jit_restart(void)
if (dasm_buf) {
zend_jit_unprotect();
#if ZEND_JIT_TARGET_ARM64
memset(dasm_labels_veneers, 0, sizeof(void*) * ZEND_MM_ALIGNED_SIZE_EX(zend_lb_MAX, DASM_ALIGNMENT));
#endif
/* restore JIT buffer pos */
dasm_ptr[0] = dasm_ptr[1];