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:
@@ -366,13 +366,12 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
|
|||||||
|
|
||||||
void *zend_shared_alloc(size_t size)
|
void *zend_shared_alloc(size_t size)
|
||||||
{
|
{
|
||||||
ZEND_ASSERT(ZCG(locked));
|
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
size_t block_size = ZEND_ALIGNED_SIZE(size);
|
size_t block_size = ZEND_ALIGNED_SIZE(size);
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
if (!ZCG(locked)) {
|
if (!ZCG(locked)) {
|
||||||
|
ZEND_ASSERT(0 && "Shared memory lock not obtained");
|
||||||
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
|
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user