com php-src: Reset heap usage statistics on request shutdown: Zend/zend_alloc.c

From: Date: Mon, 18 May 2015 20:06:23 +0000
Subject: com php-src: Reset heap usage statistics on request shutdown: Zend/zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86790@lists.php.net to get a copy of this message
Commit: fb8891d9fc670fbe1930a5cfbccab0dfe241b603 Author: Dmitry Stogov <dmitry@zend.com> Mon, 18 May 2015 23:06:23 +0300 Parents: cee88571d9dbb2d56b78b312919aea190580d9e5 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fb8891d9fc670fbe1930a5cfbccab0dfe241b603 Log: Reset heap usage statistics on request shutdown Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 8f88368..2d47b64 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2048,6 +2048,7 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent) #endif #if ZEND_MM_STAT heap->real_peak = ZEND_MM_CHUNK_SIZE; + heap->size = heap->peak = 0; #endif } }

« previous php.cvs (#86790) next »