memory usage in mod_perl
David Miller
justdave at bugzilla.org
Wed Jan 17 01:53:06 UTC 2007
Max Kanat-Alexander wrote on 1/16/07 8:21 PM:
> On Tue, 16 Jan 2007 20:07:41 -0500 David Miller <justdave at bugzilla.org>
> wrote:
>> You probably have to walk the hash and undef all the things in it.
>> If you just undef the hash you leave a bunch of orphaned references.
>
> Yes, but *what hash*? In a CleanupHandler, no variables are
> available.
It's all in $vars at the point it gets dumped to the template. Perhaps
recursively nuking $vars after the templates are displayed before
exiting would work.
On the other hand, that would be bad if we had stuck a reference to
anything that should stay cached in $vars.
--
Dave Miller http://www.justdave.net/
System Administrator, Mozilla Corporation http://www.mozilla.com/
Project Leader, Bugzilla Bug Tracking System http://www.bugzilla.org/
More information about the developers
mailing list