freebsd cvs build ./run-mozilla.sh ./xpcshell js> var a=''; var b="<a href='data:text/html,"; var c="'>test</a>"; js> for (i=0;i<(2<<16);i++) a+="&#x"+i.toString(16)+";"; Killed[out of swap space] w98 C:\WINDOWS\Desktop>cscript memory.js Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. done C:\WINDOWS\Desktop>type memory.js var a=''; var b="<a href='data:text/html,"; var c="'>test</a>"; for (i=0;i<(2<<16);i++) a+="&#x"+i.toString(16)+";"; WScript.echo("done"); C:\WINDOWS\Desktop> each of memory allocated, swapfile in use and swapfile sized dropped no more than 25mb after cscript quit. The url field here generated an out of memory error in my jsconsole after sapping cpu and swap for a very long time (i think nearly an hour). Kudos for not crashing, however i'd like us to be at least as good as cscript.
--> XPConnect; cc'ing jband
Is this XPConnect or JS Engine? I may have misassigned this. cc'ing Brendan for his opinion on this -
Looks like a dup of bug 3649 to me. Too many temp strings not getting gc'd because xpcshell (like js.c) does not install a branch callback to do a maybe gc. *** This bug has been marked as a duplicate of 3649 ***
Marking Verified Duplicate -