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

Issue 2326743003: Do not call MemoryCache::prune() when a client/observer is removed (Closed)

Created:
4 years, 3 months ago by hiroshige
Modified:
4 years, 2 months ago
Reviewers:
Nate Chapin, yhirano
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

Do not call MemoryCache::prune() when a client/observer is removed - didRemoveClientOrObserver() can be called during a Oilpan prefinalizer, so it might be unsafe to call MemoryCache::prune() there. - As WeakMemoryCache is enabled, Resource is expected to be garbage collected shortly after all clients/observers are removed, so there is less need for the pruning. BUG=644058, 603462 Committed: https://crrev.com/b23d2fc9c472f2b89b1101bdcf38ac13f4756ef7 Cr-Commit-Position: refs/heads/master@{#421768}

Patch Set 1 #

Patch Set 2 : Tet fix #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Remove justReleasedResource #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -29 lines) Patch
M third_party/WebKit/Source/core/fetch/MemoryCache.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 1 2 3 2 chunks +1 line, -16 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp View 1 2 chunks +15 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 1 chunk +1 line, -6 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
hiroshige
PTAL.
4 years, 3 months ago (2016-09-15 08:11:29 UTC) #3
yhirano
https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode733 third_party/WebKit/Source/core/fetch/Resource.cpp:733: memoryCache()->remove(this); Hm, is this statement still needed?
4 years, 3 months ago (2016-09-15 08:30:43 UTC) #4
hiroshige
https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode733 third_party/WebKit/Source/core/fetch/Resource.cpp:733: memoryCache()->remove(this); On 2016/09/15 08:30:43, yhirano (slow) wrote: > Hm, ...
4 years, 3 months ago (2016-09-15 08:45:33 UTC) #5
Nate Chapin
LGTM with a nit... https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (left): https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp#oldcode736 third_party/WebKit/Source/core/fetch/Resource.cpp:736: memoryCache()->prune(this); I think this is ...
4 years, 3 months ago (2016-09-16 21:28:47 UTC) #6
yhirano
lgtm
4 years, 3 months ago (2016-09-20 07:26:11 UTC) #7
hiroshige
https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (left): https://codereview.chromium.org/2326743003/diff/20001/third_party/WebKit/Source/core/fetch/Resource.cpp#oldcode736 third_party/WebKit/Source/core/fetch/Resource.cpp:736: memoryCache()->prune(this); On 2016/09/16 21:28:47, Nate Chapin wrote: > I ...
4 years, 2 months ago (2016-09-29 06:27:17 UTC) #12
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/2326743003/60001
4 years, 2 months ago (2016-09-29 06:48:56 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-29 07:31:28 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 07:33:37 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b23d2fc9c472f2b89b1101bdcf38ac13f4756ef7
Cr-Commit-Position: refs/heads/master@{#421768}

Powered by Google App Engine
This is Rietveld 408576698