Leopold Toetsch <[EMAIL PROTECTED]> wrote:
Am Montag, 23. April 2007 20:23 schrieb chromatic:
> On Thursday 05 April 2007 16:56, Mehmet Yavuz Selim Soyturk wrote:
> > The next program causes a memory leak for me.
> >
> > .sub main :main
> > loop:
> > $P0 = new .String
> > goto loop
> > .end
That's an endless loop. How does one measure, if it's leaking memory?
Presumably, every iteration of the loop uses the same "physical"
register. This should free up the String from the previous iteration
for collection. If there's a leak, memory would climb higher and
higher; if there's not, it should level out.
--
Matt Diephouse
http://matt.diephouse.com