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.
1 parent c15bb9a commit bf98023Copy full SHA for bf98023
ext/opcache/zend_shared_alloc.c
@@ -357,8 +357,6 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
357
358
void *zend_shared_alloc(size_t size)
359
{
360
- ZEND_ASSERT(ZCG(locked));
361
-
362
int i;
363
unsigned int block_size = ZEND_ALIGNED_SIZE(size);
364
@@ -368,6 +366,7 @@ void *zend_shared_alloc(size_t size)
368
366
369
367
#if 1
370
if (!ZCG(locked)) {
+ ZEND_ASSERT(0 && "Shared memory lock not obtained");
371
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
372
}
373
#endif
0 commit comments