1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3'

* PHP-8.3:
  Prevent possible incorrect optimization caused by ZEND_ASSUME()
This commit is contained in:
Dmitry Stogov
2024-08-29 23:12:56 +03:00

View File

@@ -366,13 +366,12 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
void *zend_shared_alloc(size_t size)
{
ZEND_ASSERT(ZCG(locked));
int i;
size_t block_size = ZEND_ALIGNED_SIZE(size);
#if 1
if (!ZCG(locked)) {
ZEND_ASSERT(0 && "Shared memory lock not obtained");
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
}
#endif