Subj : Re: Problem with the Garbage Collector To : netscape.public.mozilla.jseng From : meisterderdinge@gmx.net (Zaph) Date : Mon Mar 08 2004 02:06 am Brendan Eich wrote in message news:<4048D12D.80300@meer.net>... > Zaph wrote: > > >Unfortunately I cannot change the way the scripts are being started > >and it is possible that one script may run for days. > > > > Days? Doing what? Computing Pi to the last digit? ;-) I am check the status of several machines (each with its own script). > Surely your scripts are calling native methods, some of which do i/o, > possibly even blocking i/o. The rule you are failing to follow is that > every such native must suspend requests on its cx parameter, resuming > them after it returns from the blocking call. Could you explain this a little more in detail ? > Good, but you're not following all the of the request model's rules. And what are the request model's rules ? > >Is there a way to start the Garbage Collector while the scripts are > >active > > > > Not "active" in the sense of "in a request", no. That's by design, > that's why you need to suspend or end requests often. Could I use a different runtime environment for each script to bypass this problem ? When the runtime runs out of memory to compile the scripts it just goes into a infinit loop. Is there a way to compile it safely ? Zaph .