diff options
author | Dmitry Stogov <dmitry@zend.com> | 2013-03-18 13:13:35 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2013-03-18 13:13:35 +0400 |
commit | 1fe43d07989316d308e4dfd6989038fa09a51ff1 (patch) | |
tree | 4898ad2fae6f051905e1bf6e94ede328262d013b /ext/opcache/zend_shared_alloc.c | |
parent | ccf7d7cc93d91e621a5dfac341fd6e4dafdf4aaa (diff) | |
download | php-git-1fe43d07989316d308e4dfd6989038fa09a51ff1.tar.gz |
Add oom, wasted, hash and manual restart counters to help identify potential configuration problems
Diffstat (limited to 'ext/opcache/zend_shared_alloc.c')
-rw-r--r-- | ext/opcache/zend_shared_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |