mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
a2f7e06013
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 |
||
---|---|---|
.. | ||
test | ||
components.conf | ||
moz.build | ||
nsIStartupCacheInfo.idl | ||
StartupCache.cpp | ||
StartupCache.h | ||
StartupCacheInfo.cpp | ||
StartupCacheInfo.h | ||
StartupCacheUtils.cpp | ||
StartupCacheUtils.h |