in reply to Re: Tracking down memory leaks
in thread Tracking down memory leaks
A perl program can use more memory after running a while even if nothing is wrong. For example, if you load a 10MB file into a scalar, that scalar will hang onto that memory, even if it goes out of scope.Shouldn't these situations be handled by garbage collection. If a scalar (or array/hash) gets out of scope (eg. subroutines internal variables) they should be freed when memory is needed before asking memory from system?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tracking down memory leaks
by Joost (Canon) on Apr 13, 2005 at 12:59 UTC | |
by Hena (Friar) on Apr 13, 2005 at 13:22 UTC | |
by Joost (Canon) on Apr 13, 2005 at 14:13 UTC | |
by Anonymous Monk on Apr 13, 2005 at 15:09 UTC | |
|
Re^3: Tracking down memory leaks
by scain (Curate) on Apr 13, 2005 at 12:58 UTC | |
by perrin (Chancellor) on Apr 13, 2005 at 13:39 UTC | |
by Joost (Canon) on Apr 13, 2005 at 13:01 UTC | |
|
Re^3: Tracking down memory leaks
by perrin (Chancellor) on Apr 13, 2005 at 13:35 UTC |