On Mon, Nov 10, 2008 at 8:26 AM, David Parks <[EMAIL PROTECTED]> wrote: > Hi, I've been playing with the very simple script shown below. I've set up > an embedded debugger application so I can watch the script execution line by > line. > > What I have been trying to answer is exactly how garbage collection works in > Rhino.
I'm not a Rhino expert but I believe that it is up to Java to collect garbage. That is, the JavaScript objects are just Java objects and Java manages their collection. I searched the Rhino source for "arbage"[sic] and "gc" and there isn't any related code. There is really only mention of the "gc()" function for the shell program to call System.gc(). Somewhere in your JavaScript script try putting java.lang.System.gc() Does that cause the collection you were expecting? Peter _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
