On Monday 23 April 2007 16:41, Matt Diephouse wrote: > Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > Am Montag, 23. April 2007 20:23 schrieb chromatic:
> > > > .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. I also threw in my favorite: $P1 = getinterp ... $P1.'run_gc'() top still showed ever-increasing virtual set sizes. I'll trace what compact_pool() does to see if that sheds any light. -- c