Closed
Bug 636376
Opened 15 years ago
Closed 15 years ago
Need to expose final shutdown hook
Categories
(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P1)
Tamarin Graveyard
Garbage Collection (mmGC)
Tracking
(Not tracked)
RESOLVED
FIXED
Q3 11 - Serrano
People
(Reporter: treilly, Assigned: treilly)
Details
Attachments
(1 file)
|
909 bytes,
patch
|
lhansen
:
review+
|
Details | Diff | Splinter Review |
Steven and I have been trying to clean up some shutdown issues in the player. Basically some list classes that live on the main GCRoot are invoked after the gc is deleted.
So I cooked up a change to move the delete until after the delete of the main GCRoot so that we did things reverse of the start (and how avmshell works). Only lots of finalizers refer to this main GCRoot so now they started crashing. So what worked was:
1) delete mainRoot;
2) as the last thing in mainRoot's dtor:
gc->ForceShutdownSweep();
3) then delete gc;
So this patch enables that, its unsettling but works.
Attachment #514721 -
Flags: review?(lhansen)
Comment 1•15 years ago
|
||
Unsettling doesn't even begin to describe it.
Comment 2•15 years ago
|
||
Comment on attachment 514721 [details] [diff] [review]
make ForceShutdownSweep public
Bonus points for a bugzilla reference in the doc block above the moved function in GC.h.
Attachment #514721 -
Flags: review?(lhansen) → review+
Comment 3•15 years ago
|
||
changeset: 5978:59b2cd05abd5
user: Tommy Reilly <treilly@adobe.com>
summary: Bug 636376 - expose public shutdown sweep hook (r=lhansen)
http://hg.mozilla.org/tamarin-redux/rev/59b2cd05abd5
| Assignee | ||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•