Commit 6504573f authored by Michal Novotny's avatar Michal Novotny
Browse files

Bug 1601620 - ThreadSanitizer: data race in...

Bug 1601620 - ThreadSanitizer: data race in mozilla::net::CacheFileUtils::CachePerfStats, r=valentin

Differential Revision:

extra : moz-landing-system : lando
parent 2ade1a1b
......@@ -563,6 +563,8 @@ uint32_t CachePerfStats::GetStdDev(EDataType aType, bool aFiltered) {
// static
bool CachePerfStats::IsCacheSlow() {
StaticMutexAutoLock lock(sLock);
// Compare mShortAvg with mFilteredAvg to find out whether cache is getting
// slower. Use only data about single IO operations because ENTRY_OPEN can be
// affected by more factors than a slow disk.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment