Skip to content

Commit 80efb3a

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Prevent possible incorrect optimization caused by ZEND_ASSUME()
2 parents 367f303 + bf98023 commit 80efb3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,12 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
366366

367367
void *zend_shared_alloc(size_t size)
368368
{
369-
ZEND_ASSERT(ZCG(locked));
370-
371369
int i;
372370
size_t block_size = ZEND_ALIGNED_SIZE(size);
373371

374372
#if 1
375373
if (!ZCG(locked)) {
374+
ZEND_ASSERT(0 && "Shared memory lock not obtained");
376375
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
377376
}
378377
#endif

0 commit comments

Comments
 (0)