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)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: treilly, Assigned: treilly)

Details

Attachments

(1 file)

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)
Unsettling doesn't even begin to describe it.
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+
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
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.

Attachment

General

Creator:
Created:
Updated:
Size: