Re: Reference cycle collector patch
| From: | David Wang | Date: | Mon, 08 Oct 2007 20:36:04 +0000 |
| Subject: | Re: Reference cycle collector patch | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32705@lists.php.net to get a copy of this message | ||
On 10/8/07, Alexey Zakhlestin <indeyets@gmail.com> wrote:
> by the way, 33487 is not really a bug if it is stated this way.
> the proper bug description for 33487 would be:
> "there is no mechanism in zend_object_storage to free unused memory
> during script execution"
Yeah, it fixes the issue in that this behavior isn't a problem
anymore, but there is no reference counting-like promptness in freeing
memory that is occupied by garbage cycles. Actually, I did create a
userland function that manually frees that memory (should you want
to). It basically calls the garbage collection routine manually:
gc_collect_cycles(). You would call that function after
$t->doNothing(); and you would get the expected result.
David