Re: Continuations and memory leaks

2004-02-12 Thread Ugo Cei
I did some tests with Woody and I can confirm that everything behaves as advertised. Local variables held by continuations become garbage-collectable when the continuation returned by showForm is invalidated and also when it expires. (I still think I have a memory leak if I end the script with

Continuations and memory leaks

2004-02-11 Thread Ugo Cei
Dear friends, I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does not manifest itself if I don't create any continuation, I'm starting to suspect that my

Re: Continuations and memory leaks

2004-02-11 Thread Christopher Oliver
Ugo Cei wrote: Dear friends, I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does not manifest itself if I don't create any continuation, I'm starting to

Re: Continuations and memory leaks

2004-02-11 Thread Ugo Cei
Christopher Oliver wrote: Ugo Cei wrote: I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does not manifest itself if I don't create any continuation, I'm

Re: Continuations and memory leaks

2004-02-11 Thread Christopher Oliver
Do you have global variables in your scripts? Ugo Cei wrote: Christopher Oliver wrote: Ugo Cei wrote: I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does

Re: Continuations and memory leaks

2004-02-11 Thread Ugo Cei
Christopher Oliver wrote: Do you have global variables in your scripts? Not at all. Ugo

Re: Continuations and memory leaks

2004-02-11 Thread Christopher Oliver
Ugo Cei wrote: Christopher Oliver wrote: Ugo Cei wrote: I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does not manifest itself if I don't create any

Re: Continuations and memory leaks

2004-02-11 Thread Ugo Cei
Christopher Oliver wrote: Look at Optimizeit and see if there are any instances of org.mozilla.javascript.cotinuations.Continuation or org.apache.cocoon.components.flow.WebContinuation still around after this. OK. This leaks a java.awt.Rectangle (plus a WebContinuation and a Continuation) each