fune/toolkit/components/asyncshutdown
Jens Stutte 31052c1f7d Bug 1442971 - Replace thread.processNextEvent with SpinEventloopUntil in AsyncShutdown spinner. r=gsvelto,xpcom-reviewers,emilio
In case the shutdown timeout kicks in while waiting for the next event, we
see a quite anonymous stack signature that is not easy to connect with shutdown
hangs. We can make this easier to detect by just using a normal
spinEventLoopUntil, which will ensure that the relative annotation will appear
on the report.

Note that this will always add a nesting level to the XPCOMSpinEventLoopStack
annotation in all shutdown hangs or other crashes happening while the
AsyncShutdown spinner is active, even if the crash has not been caused by the
AsyncShutdown machinery itself.
We might need to adjust some prefixes after this lands.

Differential Revision: https://phabricator.services.mozilla.com/D176119
2023-04-22 08:52:18 +00:00
..
tests/xpcshell
AsyncShutdown.sys.mjs Bug 1442971 - Replace thread.processNextEvent with SpinEventloopUntil in AsyncShutdown spinner. r=gsvelto,xpcom-reviewers,emilio 2023-04-22 08:52:18 +00:00
components.conf
moz.build
nsAsyncShutdown.sys.mjs
nsIAsyncShutdown.idl