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 1e148b6 commit 12462e4Copy full SHA for 12462e4
ext/opcache/zend_shared_alloc.c
@@ -360,14 +360,11 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
360
361
void *zend_shared_alloc(size_t size)
362
{
363
+ ZEND_ASSERT(ZCG(locked));
364
+
365
int i;
366
unsigned int block_size = ZEND_ALIGNED_SIZE(size);
367
-#if 1
- if (!ZCG(locked)) {
368
- zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
369
- }
370
-#endif
371
if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */
372
SHARED_ALLOC_FAILED();
373
return NULL;
0 commit comments