Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Issue 2085583002: [CacheStorage] Don't call GetUsageAndQuota from a scheduled operation (Closed)

Created:
4 years, 6 months ago by jkarlin
Modified:
4 years, 6 months ago
Reviewers:
jsbell
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Don't call GetUsageAndQuota from a scheduled operation Scheduled operations run sequentially. GetUsageAndQuota() can sometimes create a new Size() scheduled operation, so calling it while in a scheduled operation can result in a hung CacheStorage. This CL moves the calls to GetUsageAndQuota to just before the operations are scheduled. This means that the size estimate is less accurate, as it's determined potentially well before the operation runs. BUG=620713 Committed: https://crrev.com/36dc82c2b7539b33b63cb6f967feae265625d178 Cr-Commit-Position: refs/heads/master@{#401001}

Patch Set 1 #

Patch Set 2 : Fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -120 lines) Patch
M content/browser/cache_storage/cache_storage_cache.h View 5 chunks +19 lines, -8 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 8 chunks +85 lines, -74 lines 2 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 3 chunks +3 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
jkarlin
jsbell@ PTAL, thanks!
4 years, 6 months ago (2016-06-21 11:27:35 UTC) #4
jsbell
lgtm https://codereview.chromium.org/2085583002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2085583002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#newcode360 content/browser/cache_storage/cache_storage_cache.cc:360: base::ThreadTaskRunnerHandle::Get()->PostTask( Necessary for this CL, or just to ...
4 years, 6 months ago (2016-06-21 15:19:55 UTC) #5
jkarlin
Thanks! https://codereview.chromium.org/2085583002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2085583002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#newcode360 content/browser/cache_storage/cache_storage_cache.cc:360: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/06/21 15:19:55, jsbell wrote: > Necessary ...
4 years, 6 months ago (2016-06-21 15:22:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085583002/20001
4 years, 6 months ago (2016-06-21 15:23:46 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-21 15:53:25 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 15:55:31 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/36dc82c2b7539b33b63cb6f967feae265625d178
Cr-Commit-Position: refs/heads/master@{#401001}

Powered by Google App Engine
This is Rietveld 408576698