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 45dac39 + c15bb9a commit 0268cb0Copy full SHA for 0268cb0
ext/opcache/zend_shared_alloc.c
@@ -371,6 +371,11 @@ void *zend_shared_alloc(size_t size)
371
int i;
372
size_t block_size = ZEND_ALIGNED_SIZE(size);
373
374
+#if 1
375
+ if (!ZCG(locked)) {
376
+ zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
377
+ }
378
+#endif
379
if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */
380
SHARED_ALLOC_FAILED();
381
return NULL;
0 commit comments