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

Issue 2613183003: [CacheStorage] Updating cache size within the scheduled operation. (Closed)

Created:
3 years, 11 months ago by cmumford
Modified:
3 years, 11 months ago
Reviewers:
jkarlin
CC:
chromium-reviews, jam, darin-cc_chromium.org, jkarlin+watch_chromium.org, nhiroki
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Updating cache size within the scheduled operation. Previously scheduled cache mutation operations would begin the size update calculation and then return to potentially begin another mutation operation in parallel with the running size update calculation. This could result in size held by CacheStorage becoming mismatched with the actual cache size if Chrome were to crash before the index could be written. This change completes the size calculation before calling the closure to begin the next scheduled operation. BUG=678455 Review-Url: https://codereview.chromium.org/2613183003 Cr-Commit-Position: refs/heads/master@{#443059} Committed: https://chromium.googlesource.com/chromium/src/+/3418f524d88d8851f26ea6a9ea0ac04cf6aea332

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -16 lines) Patch
M content/browser/cache_storage/cache_storage_cache.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 5 chunks +14 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
cmumford
3 years, 11 months ago (2017-01-06 21:07:12 UTC) #4
Wez
Is the cache-size stored atomically with each update to the cache? If not then surely ...
3 years, 11 months ago (2017-01-07 02:21:44 UTC) #7
jkarlin
lgtm
3 years, 11 months ago (2017-01-09 12:33:36 UTC) #8
jkarlin
On 2017/01/07 02:21:44, Wez wrote: > Is the cache-size stored atomically with each update to ...
3 years, 11 months ago (2017-01-09 12:34:41 UTC) #9
cmumford
On 2017/01/09 12:34:41, jkarlin wrote: > On 2017/01/07 02:21:44, Wez wrote: > > Is the ...
3 years, 11 months ago (2017-01-09 18:15:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2613183003/1
3 years, 11 months ago (2017-01-11 19:00:46 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/98362)
3 years, 11 months ago (2017-01-11 19:58:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2613183003/1
3 years, 11 months ago (2017-01-11 23:14:34 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 23:51:39 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/3418f524d88d8851f26ea6a9ea0a...

Powered by Google App Engine
This is Rietveld 408576698