gecko-dev/startupcache
Doug Thayer 973cdcbc2e Bug 1656974 - Turn off StartupCache when startup is finished r=froydnj
I don't think this will fully resolve the shutdown hangs associated
with this bug. The underlying problem is that writing the startup
cache during shutdown can take a long time. This seems like A Bad Thing,
and I have a mild leaning toward the thought that we shouldn't write the
startup cache at all during shutdown. However, I do think that trading
shutdown time regressions for startup time wins is probably good, so
I don't feel super comfortable making that change.

However, this change at least fixes the problem where we A) block the main
thread waiting for the write to finish, and B) are more likely to hit a
shutdown hang, since we concentrate all of the hang time in one phase,
rather than it being spread across the shutdown timeline. This is likely
the major change that the regressing bug introduced.

The unfortunate consequence is that if we try to GetBuffer during shutdown,
we will now read out of the omnijar. However, it should overall be better
since we'll be waiting on a (hopefully) small number of small reads rather
than a large write.

Differential Revision: https://phabricator.services.mozilla.com/D86054
2020-08-07 19:42:56 +00:00
..
test Bug 1656974 - Turn off StartupCache when startup is finished r=froydnj 2020-08-07 19:42:56 +00:00
PStartupCache.ipdl Bug 1627075 - OMT and OMP StartupCache access r=froydnj 2020-07-08 02:46:11 +00:00
StartupCache.cpp Bug 1656974 - Turn off StartupCache when startup is finished r=froydnj 2020-08-07 19:42:56 +00:00
StartupCache.h Bug 1656974 - Turn off StartupCache when startup is finished r=froydnj 2020-08-07 19:42:56 +00:00
StartupCacheChild.cpp Bug 1651941 - Free unreferenced child StartupCache entries on send r=froydnj 2020-07-22 20:31:31 +00:00
StartupCacheChild.h Bug 1651941 - Avoid unnecessary empty StartupCaches r=froydnj 2020-07-22 20:31:21 +00:00
StartupCacheInfo.cpp
StartupCacheInfo.h
StartupCacheParent.cpp Bug 1651941 - Avoid unnecessary empty StartupCaches r=froydnj 2020-07-22 20:31:21 +00:00
StartupCacheParent.h Bug 1651941 - Avoid unnecessary empty StartupCaches r=froydnj 2020-07-22 20:31:21 +00:00
StartupCacheUtils.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
StartupCacheUtils.h
components.conf
moz.build Bug 1627075 - OMT and OMP StartupCache access r=froydnj 2020-07-08 02:46:11 +00:00
nsIStartupCacheInfo.idl