Closed
Bug 3521
Opened 26 years ago
Closed 26 years ago
JavaScript GC fails to run often enough
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
M5
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.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 1•26 years ago
|
||
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.
Assignee | ||
Updated•26 years ago
|
Status: RESOLVED → REOPENED
Assignee | ||
Comment 2•26 years ago
|
||
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.
Assignee | ||
Updated•26 years ago
|
Resolution: WORKSFORME → ---
Assignee | ||
Comment 3•26 years ago
|
||
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
Assignee | ||
Updated•26 years ago
|
Summary: Communicator4.5 crash --- JavaScript memory leak? → JavaScript GC fails to run often enough
Assignee | ||
Updated•26 years ago
|
Target Milestone: M4
Assignee | ||
Updated•26 years ago
|
Target Milestone: M4 → M5
Assignee | ||
Updated•26 years ago
|
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•26 years ago
|
||
Fixed by recent merge of SpiderMonkey140_BRANCH to tip.
Changing component to "Javascript Engine". "Javascript" component is being
retired.
this works reasonably well (compared to 4.5x) in mozilla. i haven't yet tried
this in 4.6 builds.
You need to log in
before you can comment on or make changes to this bug.
Description
•