Audit AdvanceShutdownPhase to be more reliable in late shutdown
Categories
(Core :: XPCOM, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: jstutte, Assigned: jstutte)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files, 2 obsolete files)
From a first look it seems we never advance sCurrentShutdownPhase
for the phases later than XPCOMShutdownThreads
. But we already introduced checks that rely on this in:
These are effectively no-ops.
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 1•11 months ago
|
||
We could sync the shutdown state between ClearOnShutdown
and AppShutdown
as a first step towards bug 1697745.
Assignee | ||
Comment 2•11 months ago
|
||
Updated•11 months ago
|
Assignee | ||
Comment 3•11 months ago
|
||
AppShutdown::AdvanceShutdownPhase
tried to preserved the original order we had historically in XPCOMShutdown
. This resulted in having called KillClearOnShutdown
before we tried fast shutdown and/or notified our observers.
It seems desirable to remove the objects associated via ClearOnShutdown(aPhase)
as last operation here, such that:
- fast shutdown can just override their (then useless) deletion
- otherwise notified observers can rely on them to still exist when executed
Assignee | ||
Comment 4•11 months ago
|
||
Depends on D145083
Assignee | ||
Comment 5•11 months ago
|
||
Depends on D145103
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Assignee | ||
Comment 6•11 months ago
|
||
Depends on D145103
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47a749623030 Part 1 - Remove obsolete ShutdownPhase::XPCOMShutdownLoaders. r=xpcom-reviewers,nika https://hg.mozilla.org/integration/autoland/rev/77c9472e4932 Part 2 - Synchronize KillClearOnShutdown phases with AdvanceShutdownPhase. r=xpcom-reviewers,dthayer,nika https://hg.mozilla.org/integration/autoland/rev/3031b4d8ca8b Part 3 - Make nsTerminator aware of late shutdown phases. r=xpcom-reviewers,nika
Comment 8•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/47a749623030
https://hg.mozilla.org/mozilla-central/rev/77c9472e4932
https://hg.mozilla.org/mozilla-central/rev/3031b4d8ca8b
Description
•