Bug #71166 [Opn->Nab]: Wrong output of GC statistics
| From: | laruence@php.net | Date: | Sun, 20 Dec 2015 07:05:52 +0000 |
| Subject: | Bug #71166 [Opn->Nab]: Wrong output of GC statistics | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198056@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71166&edit=1
ID: 71166
Updated by: laruence@php.net
Reported by: y dot uchiyama dot 1015 at gmail dot com
Summary: Wrong output of GC statistics
-Status: Open
+Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Any
PHP Version: 7.0.1
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
in PHP7, we introduced a gc_additional_buffer. so I think >1000 make sense in this case.
Previous Comments:
------------------------------------------------------------------------
[2015-12-19 08:54:35] y dot uchiyama dot 1015 at gmail dot com
Sorry, but now I'm not certain my patch is right.
------------------------------------------------------------------------
[2015-12-19 08:10:45] y dot uchiyama dot 1015 at gmail dot com
Description:
------------
PHP 7 outputs wrong GC stats when compiled with -DGC_BENCH=1, because root_buf_length is not
decreased when cyclic garbages are collected on GC.
Test script:
---------------
./sapi/cli/php </tmp/example1.php
where example1.php is shown at the following
http://www.php.net/manual/en/features.gc.performance-considerations.php
Expected result:
----------------
Root buffer length/peak should be <= 10000.
Actual result:
--------------
GC Statistics
-------------
Runs: 10
Collected: 99999
Root buffer length: 100001
Root buffer peak: 100006
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71166&edit=1