Michal Novotny 17f7cb5283 Bug 1616507 - Intermittent PID 13265 | SUMMARY: ThreadSanitizer: data race /builds/worker/workspace/build/src/netwerk/cache2/CacheFile.cpp:2362:48 in EntryWouldExceedLimit r=mayhemer
There is a possible race condition between CacheFile::OnFileOpened() called on the cache I/O thread as a result of calling CacheFileIOManager::OpenFile() and CacheFile::EntryWouldExceedLimit() and CacheFile::SetMemoryOnly(), both called on main thread from CacheEntry::OpenOutputStream(). Both methods now grab the CacheFile's lock to synchronize the access.

Differential Revision: https://phabricator.services.mozilla.com/D63826

--HG--
extra : moz-landing-system : lando
2020-02-26 11:56:21 +00:00
..