mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Prevent possible incorrect optimization caused by ZEND_ASSUME()
This commit is contained in:
commit
80efb3aba4
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue