Subj : Spidermonkey: JS_malloc and memory usage To : netscape.public.mozilla.jseng From : Weiyang Zhou Date : Thu Sep 01 2005 11:15 am We're using Spidermonkey in a RAM-limited environment. The total RAM is 8 MB, with half of it used by things other than JavaScript. I want to know how can we gracefully fail the memory allocation from user scripts without crashing the whole system. Is JS_malloc the engine uses internally for the JavaScript objects? Can I modify it to catch the out-of-memory condition? Any suggestions will be appreciated. Thanks, Weiyang .