[Greasemonkey] Leak Monitor
Johan Sundström
oyasumi at gmail.com
Tue May 9 03:08:39 EDT 2006
>> Is there actually some system built into greasemonkey already that
>> tracks script event handler registration behind the scenes to back
>> them out again so everything gets properly garbage collected?
>
> GM's not doing anything specifically for this. But not all event
> handler registrations leak, right? Just closures over content nodes?
Hm. Are closures holding XPCNativeWrapped content nodes safe? I think
you're right about not all handlers leaking, though I'm not intimately
familiar with what generates the bad cycles the gc fails to break, so
I've been aiming for slightly overzealous.
--
/ Johan Sundström, http://ecmanaut.blogspot.com/
More information about the Greasemonkey
mailing list