Subj : sm: limiting memory usage? To : netscape.public.mozilla.jseng From : Jens Thiele Date : Thu Mar 31 2005 01:15 pm Hi, I am currently trying to fix the docu I am writing about embedding SpiderMonkey. Especially the section about limiting memory usage. It seems there is no way to effectiely limit memory usage in SM? perhaps via the branch callback function and cx->runtime->gcMallocBytes? Earlier I thought the maxbytes argument to JS_NewRuntime (in combination with stackChunkSize and JS_NewContext) will do but it doesn't. Example: x="x";while(1)x+=x (btw: mozilla 1.7.5 is affected, too - did not have the time to test it with newer versions / firefox test-case: http://egachine.berlios.de/mozoutofmem/ ) Jens .