[php-src] Issue #8098: GC optimization of closure use itself
| From: | damianwadley | Date: | Tue, 15 Feb 2022 07:35:24 +0000 |
| Subject: | [php-src] Issue #8098: GC optimization of closure use itself | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239792@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8098
Comment Author: damianwadley
PHP will automatically GC cycles when they reach 10000. https://3v4l.org/r2F3l
https://www.php.net/manual/en/features.gc.collecting-cycles.php
> When the garbage collector is turned on, the cycle-finding algorithm as described above is
> executed whenever the root buffer runs full. The root buffer has a fixed size of 10,000 possible
> roots (although you can alter this by changing the GC_ROOT_BUFFER_MAX_ENTRIES constant in
> Zend/zend_gc.c in the PHP source code, and re-compiling PHP). When the garbage collector is turned
> off, the cycle-finding algorithm will never run. However, possible roots will always be recorded in
> the root buffer, no matter whether the garbage collection mechanism has been activated with this
> configuration setting.
Please describe the bug you are trying to report.