Closed Bug 1421712 Opened 7 years ago Closed 4 years ago

xpcom sCurrentShutdownPhase is never updated past NotInShutdown

Categories

(Core :: XPCOM, enhancement)

57 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1663747

People

(Reporter: bkelly, Unassigned)

Details

I've been trying to use ClearOnShutdown.h's sCurrentShutdownPhase in order to avoid doing stuff once shutdown begins. Unfortunately sCurrentShutdownPhase is never updated. I tried updating it here: https://searchfox.org/mozilla-central/source/xpcom/base/ClearOnShutdown.cpp#28 But this triggers assertions where code has started using ClearOnShutdown after its shutdown phase has passed: https://searchfox.org/mozilla-central/source/xpcom/base/ClearOnShutdown.h#107
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.