From 1fe43d07989316d308e4dfd6989038fa09a51ff1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 Mar 2013 13:13:35 +0400 Subject: Add oom, wasted, hash and manual restart counters to help identify potential configuration problems --- ext/opcache/zend_shared_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/opcache/zend_shared_alloc.c') diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index 1a983aeea7..5e37e38586 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -276,8 +276,8 @@ static size_t zend_shared_alloc_get_largest_free_block(void) #define SHARED_ALLOC_FAILED() do { \ zend_accel_error(ACCEL_LOG_WARNING, "Not enough free shared space to allocate %ld bytes (%ld bytes free)", (long)size, (long)ZSMMG(shared_free)); \ if (zend_shared_alloc_get_largest_free_block() < MIN_FREE_MEMORY) { \ - ZSMMG(memory_exhausted) = 1; \ - zend_accel_schedule_restart(TSRMLS_C); \ + ZSMMG(memory_exhausted) = 1; \ + zend_accel_schedule_restart(ACCEL_RESTART_OOM TSRMLS_CC); \ } \ } while (0) -- cgit v1.2.1