Fixed incorrect map_ptr slots counting

This commit is contained in:
Dmitry Stogov 2021-06-16 11:33:43 +03:00
parent e63ed9d0da
commit 8ae06582c6

View File

@ -2385,6 +2385,8 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
return NULL;
}
zend_map_ptr_extend(ZCSG(map_ptr_last));
#if ZEND_MM_ALIGNMENT < 8
/* Align to 8-byte boundary */
ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 7L) & ~7L);
@ -2428,6 +2430,8 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
EG(num_errors) = 0;
EG(errors) = NULL;
ZCSG(map_ptr_last) = CG(map_ptr_last);
zend_shared_alloc_destroy_xlat_table();
zend_shared_alloc_unlock();