Closed Bug 3521 Opened 26 years ago Closed 26 years ago

JavaScript GC fails to run often enough

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: michiyo, Assigned: norrisboyd)

Details

Attachments

(2 files)

OS:Solaris 2.6 and Windows95/98/NT 4.0SP3 Product:Communicator 4.5 Memory:256MB~(Solaris) I have a customer who tested this HTML file. - - - <HTML> <HEAD> <TITLE>JavaScript Test</TITLE> </HEAD> <BODY> <SCRIPT LANGUAGE = "JavaScript"> v_str="" v_str1="12345678901234567890123456789012345678901234567890123456789012345678901 234567890"; function repeat(n){ for (i=0;i<n;i++) v_str=v_str+v_str1+"<BR>"; return v_str; } document.write(repeat(100)); <----the number of repeat 1800 and up, the memory leaks happen!! </SCRIPT> </BODY> </HTML> - - - Is this a bug? If you should have about this information,please let me know. Regards, Thanks.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
1. Open a new window in Communicator on NT. System memory consumption is 75016K. 2. I open the page (with repeat(400)). Mem usage spikes, then settles down at 101368K. 3. I close the window. Memory usage is now 75004K.
Status: RESOLVED → REOPENED
I've reopened this and will try to get a fix into 4.6. That fix will be tracked on the internal bug tracking system since we don't cut over to bugzilla until 5.x bugs.
Resolution: WORKSFORME → ---
Fixed in SpiderMonkeyDev_BRANCH: Checking in jsapi.c; /cvsroot/mozilla/js/src/jsapi.c,v <-- jsapi.c new revision: 3.14.2.4; previous revision: 3.14.2.3 done Checking in jscntxt.h; /cvsroot/mozilla/js/src/jscntxt.h,v <-- jscntxt.h new revision: 3.6.2.1; previous revision: 3.6 done Checking in jsgc.c; /cvsroot/mozilla/js/src/jsgc.c,v <-- jsgc.c new revision: 3.7.2.1; previous revision: 3.7 done
Summary: Communicator4.5 crash --- JavaScript memory leak? → JavaScript GC fails to run often enough
Target Milestone: M4
Target Milestone: M4 → M5
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Fixed by recent merge of SpiderMonkey140_BRANCH to tip.
Changing component to "Javascript Engine". "Javascript" component is being retired.
Attached file test case (deleted) —
this works reasonably well (compared to 4.5x) in mozilla. i haven't yet tried this in 4.6 builds.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: