Closed
Bug 511522
Opened 15 years ago
Closed 15 years ago
TM: Notify JS_CommenceRuntimeShutdown from CycleCollector
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: gal, Assigned: gal)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
6.43 KB,
patch
|
graydon
:
review+
|
Details | Diff | Splinter Review |
The way modules are unloaded is unpredictable and leak detection sometimes runs before the XPConnect shutdown sequence starts. This patch notifies the GC engine as soon the CycleCollector knows about the impending shutdown, which is always early enough since the CC is involved in leak detection.
Assignee | ||
Comment 1•15 years ago
|
||
Assignee: general → gal
Assignee | ||
Updated•15 years ago
|
Attachment #395414 -
Flags: review?(graydon)
Updated•15 years ago
|
Attachment #395414 -
Flags: review?(graydon) → review+
Assignee | ||
Comment 2•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/2e528cc8602a
Whiteboard: fixed-in-tracemonkey
Assignee | ||
Comment 3•15 years ago
|
||
Removed debug printfs that confuse trace-tests: http://hg.mozilla.org/tracemonkey/rev/85832269fb64
Assignee | ||
Comment 4•15 years ago
|
||
Looks like this finally fixed it. Debugging leaks really builds character.
Comment 5•15 years ago
|
||
looks like this caused an xpcshell test to fail on Windows: _tests\xpcshell\test_browser_places\unit\test_browserGlue_shutdown.js test failed (with xpcshell return code: -1073741819) looks 100% reproducible on windows, I'll see about that here.
Comment 6•15 years ago
|
||
Do we need the (sometimes mis-indented) #ifdef DEBUG fprintf(stderr, ...) calls? /be
Assignee | ||
Comment 7•15 years ago
|
||
Those are gone.
Comment 8•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/2e528cc8602a
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 9•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/971f31e77e34
status1.9.2:
--- → beta1-fixed
Comment 10•15 years ago
|
||
er, should have been http://hg.mozilla.org/releases/mozilla-1.9.2/rev/94c854a54f65
You need to log in
before you can comment on or make changes to this bug.
Description
•