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

Issue 171303003: Make pruning the memory cache when a resource becomes dead consistent in case of no-store (Closed)

Created:
6 years, 10 months ago by kbalazs
Modified:
6 years, 10 months ago
Reviewers:
Nate Chapin
CC:
blink-reviews, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make pruning the memory cache when a resource becomes dead consistent in case of no-store Hard to find any reason why it was written the way it was. We just need to make sure not use-after-free the Resource object but otherwise it is fine pruning the cache after a no-store resource becomes dead. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167454

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M Source/core/fetch/Resource.cpp View 1 chunk +8 lines, -7 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
kbalazs
ptal
6 years, 10 months ago (2014-02-18 21:29:23 UTC) #1
kbalazs
About testing, maybe something can be added to MemoryCacheTest but honestly I'm not sure it's ...
6 years, 10 months ago (2014-02-18 21:32:18 UTC) #2
Nate Chapin
https://codereview.chromium.org/171303003/diff/1/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/171303003/diff/1/Source/core/fetch/Resource.cpp#newcode517 Source/core/fetch/Resource.cpp:517: memoryCache()->prune(); I think it's safe to call prune(this) after ...
6 years, 10 months ago (2014-02-18 21:35:54 UTC) #3
kbalazs
On 2014/02/18 21:35:54, Nate Chapin wrote: > https://codereview.chromium.org/171303003/diff/1/Source/core/fetch/Resource.cpp > File Source/core/fetch/Resource.cpp (right): > > https://codereview.chromium.org/171303003/diff/1/Source/core/fetch/Resource.cpp#newcode517 ...
6 years, 10 months ago (2014-02-18 22:27:09 UTC) #4
Nate Chapin
Ok, LGTM I was thinking that remove() had a bool return value indicating whether the ...
6 years, 10 months ago (2014-02-18 22:29:35 UTC) #5
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 10 months ago (2014-02-18 23:40:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/171303003/1
6 years, 10 months ago (2014-02-18 23:41:01 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 02:23:04 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=27725
6 years, 10 months ago (2014-02-19 02:23:04 UTC) #9
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 10 months ago (2014-02-19 17:47:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/171303003/1
6 years, 10 months ago (2014-02-19 21:49:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/171303003/1
6 years, 10 months ago (2014-02-19 22:54:39 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 06:54:32 UTC) #13
Message was sent while issue was closed.
Change committed as 167454

Powered by Google App Engine
This is Rietveld 408576698