Subj : Re: Spidermonkey: JS_malloc and memory usage To : netscape.public.mozilla.jseng From : Weiyang Zhou Date : Fri Sep 09 2005 11:28 pm Thanks for the advice. But we are working on embedded system and there is no OS support. How can I find out how much memory left for heap? "Michael Daumling" wrote in message news:1125597271.572542.94250@o13g2000cwo.googlegroups.com... > Unfortunately, the engine also uses vanilla malloc/free/realloc etc. > You would want to recompile the source using defines like > -Dmalloc=my_malloc etc. This lets you write your own memory allocation > functions. > .