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

Issue 2066763002: [WeakMemoryCache] Remove Resource from MemoryCache just before destructed (Closed)

Created:
4 years, 6 months ago by hiroshige
Modified:
4 years, 6 months ago
CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WeakMemoryCache] Remove Resource from MemoryCache just before destructed Previously, if Weak MemoryCache is enabled, Resource could be silently destructed and MemoryCache's live/dead sizes were not updated. This may cause larger |m_live/deadSize| and more aggressive pruning. This CL calls MemoryCache::remove() just before a Resource is destructed to make the MemoryCache sizes correct. This CL should be reverted before going to beta. BUG=603462 Committed: https://crrev.com/4706b08cb45742e3b0dcc73ba443522d0cce28da Cr-Commit-Position: refs/heads/master@{#401536}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M third_party/WebKit/Source/core/fetch/MemoryCache.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 1 chunk +9 lines, -1 line 3 comments Download

Messages

Total messages: 31 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066763002/1
4 years, 6 months ago (2016-06-14 11:29:40 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066763002/20001
4 years, 6 months ago (2016-06-14 12:35:25 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066763002/40001
4 years, 6 months ago (2016-06-14 13:34:56 UTC) #7
hiroshige
PTAL.
4 years, 6 months ago (2016-06-14 14:21:16 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-14 15:12:26 UTC) #11
yhirano
I think this CL should be reviewed by oilpan reviewers.
4 years, 6 months ago (2016-06-15 07:54:36 UTC) #13
haraken
https://codereview.chromium.org/2066763002/diff/40001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2066763002/diff/40001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode89 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:89: void MemoryCacheEntry::clearResourceWeak(Visitor* visitor) This is not called when the ...
4 years, 6 months ago (2016-06-15 08:21:05 UTC) #15
hiroshige
https://codereview.chromium.org/2066763002/diff/40001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2066763002/diff/40001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode89 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:89: void MemoryCacheEntry::clearResourceWeak(Visitor* visitor) On 2016/06/15 08:21:05, haraken wrote: > ...
4 years, 6 months ago (2016-06-15 11:53:41 UTC) #16
haraken
LGTM
4 years, 6 months ago (2016-06-15 11:55:48 UTC) #17
yhirano
lgtm
4 years, 6 months ago (2016-06-15 12:21:16 UTC) #18
hiroshige
japhet@, could you take a look as a core/fetch OWNER? Thanks.
4 years, 6 months ago (2016-06-17 20:24:58 UTC) #19
Nate Chapin
LGTM bordering on rubber-stamp... https://codereview.chromium.org/2066763002/diff/40001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2066763002/diff/40001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode82 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:82: visitor->template registerWeakMembers<MemoryCacheEntry, &MemoryCacheEntry::clearResourceWeak>(this); I don't ...
4 years, 6 months ago (2016-06-20 21:54:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066763002/40001
4 years, 6 months ago (2016-06-22 17:59:57 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/243492)
4 years, 6 months ago (2016-06-22 21:03:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066763002/40001
4 years, 6 months ago (2016-06-23 03:04:31 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-23 04:20:05 UTC) #28
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4706b08cb45742e3b0dcc73ba443522d0cce28da Cr-Commit-Position: refs/heads/master@{#401536}
4 years, 6 months ago (2016-06-23 04:21:40 UTC) #30
hiroshige
4 years, 5 months ago (2016-06-30 02:35:20 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2110683005/ by hiroshige@chromium.org.

The reason for reverting is: Reverting field-trial CLs before going to beta, as
planned..

Powered by Google App Engine
This is Rietveld 408576698