We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 367f303 + bf98023 commit 80efb3aCopy full SHA for 80efb3a
ext/opcache/zend_shared_alloc.c
@@ -366,13 +366,12 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
366
367
void *zend_shared_alloc(size_t size)
368
{
369
- ZEND_ASSERT(ZCG(locked));
370
-
371
int i;
372
size_t block_size = ZEND_ALIGNED_SIZE(size);
373
374
#if 1
375
if (!ZCG(locked)) {
+ ZEND_ASSERT(0 && "Shared memory lock not obtained");
376
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
377
}
378
#endif
0 commit comments