gecko-dev/startupcache
Nika Layzell 645fce5d10 Bug 1841660 - Fix potential deadlock waiting for StartupCache ThreadedPrefetch, r=jesup a=RyanVM
In a previous change to this logic, we missed a hidden early return in
the `MMAP_FAULT_HANDLER_CATCH()` macro which can early return on both
Linux and Windows. If this is hit, we could end up blocking at various
points waiting for the StartupCache to be prefetched.

This patch changes the logic to notify to happen in a ScopeExit instead,
ensuring that it'll happen on all return paths.

In addition, there was another potential deadlock due to the
ThreadedPrefetch thread acquiring mTableLock. This was fixed by passing
in the pointers in the runnable instead. This should be OK as we are
making sure to block on ThreadedPrefetch before we clear the startup
data already.

Differential Revision: https://phabricator.services.mozilla.com/D182732
2023-07-04 19:05:06 +00:00
..
test Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish 2023-05-20 12:26:49 +00:00
components.conf
moz.build Bug 1817313 - Make startupcache/ buildable outside of a unified build environment r=andi 2023-02-19 21:40:36 +00:00
nsIStartupCacheInfo.idl
StartupCache.cpp Bug 1841660 - Fix potential deadlock waiting for StartupCache ThreadedPrefetch, r=jesup a=RyanVM 2023-07-04 19:05:06 +00:00
StartupCache.h Bug 1841660 - Fix potential deadlock waiting for StartupCache ThreadedPrefetch, r=jesup a=RyanVM 2023-07-04 19:05:06 +00:00
StartupCacheInfo.cpp Bug 1746447: StartupCache cleanup r=mccr8 2023-04-22 13:58:05 +00:00
StartupCacheInfo.h
StartupCacheUtils.cpp Bug 1800050 - Use UniqueFreePtr in StartupCache::PutBuffer. r=nbp 2022-12-01 10:46:34 +00:00
StartupCacheUtils.h Bug 1800050 - Use UniqueFreePtr in StartupCache::PutBuffer. r=nbp 2022-12-01 10:46:34 +00:00