in reply to Re^2: Garbage Collection and undef
in thread Garbage Collection and undef
It is a misunderstaning that reference counting always causes immediate garbage collection. There are different algorithms, and counting reference is much more complex than you thought. As a matter fact, in order to resolve problems including cyclic garbage, Perl uses Deutsch and Bobrow's deferred reference counting. This algorithm ignores updates to local variables, and it periodically scans the stack to determine the true reference counts.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Garbage Collection and undef
by tilly (Archbishop) on Oct 17, 2004 at 05:08 UTC | |
by ihb (Deacon) on Oct 17, 2004 at 05:54 UTC | |
by tilly (Archbishop) on Oct 17, 2004 at 06:30 UTC | |
Re^4: Garbage Collection and undef
by hv (Prior) on Oct 17, 2004 at 10:50 UTC |