Subj : Re: Runtime Memory Requirements To : David Hubbard From : Brendan Eich Date : Thu Jul 01 2004 03:32 pm David Hubbard wrote: > What is the miminum requirements for initializing the JS_NewRuntime > function. The default example has it set at (8L * 1024 * 1024) or 8Meg. Is > this the mimimum or can it be set smaller? Sure, it can be set smaller, or better (if you take care of calling the GC well from your embedding code, as you should), made "infinite" (0xffffffff). If you make it small enough, and you don't run the GC yourself often enough, you will see "last-ditch" GCs being run from js_AllocGCThing. If one of those cannot find even one garbage GC-thing to recycle, then the retried allocation attempt will fail, and you'll get an out of memory error (which is never an exception, not catchable). /be .