mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 852467 - nsDisableOldMaxSmartSizePrefEvent runs on the gecko main thread, blocks for long periods of time, r=honzab
This commit is contained in:
parent
cfa3b7f99b
commit
549f7cde85
4
netwerk/cache/nsCacheService.cpp
vendored
4
netwerk/cache/nsCacheService.cpp
vendored
@ -1610,7 +1610,9 @@ public:
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsCacheService::SetDiskSmartSize();
|
||||
// It is safe to call SetDiskSmartSize_Locked() without holding the lock
|
||||
// when we are on main thread and nsCacheService is initialized.
|
||||
nsCacheService::gService->SetDiskSmartSize_Locked();
|
||||
|
||||
if (nsCacheService::gService->mObserver->PermittedToSmartSize(branch, false)) {
|
||||
rv = branch->SetIntPref(DISK_CACHE_CAPACITY_PREF, MAX_CACHE_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user