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

Issue 179943002: MemoryCache: make sure that Resources are evicted only when they can be deleted (Closed)

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

Description

MemoryCache: make sure that Resources are evicted only when they can be deleted This CL fixes a problem where Resources can be taken out of the cache but not deleted (if their handle count is not 0 for example). BUG=290193 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170311

Patch Set 1 : #

Patch Set 2 : Rebase #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Fixed issue with long-script-content layout test #

Patch Set 7 : Rebase #

Patch Set 8 : Pruning when handle count reaches 1 #

Total comments: 8

Patch Set 9 : Addressed Philippe's comments #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -14 lines) Patch
M Source/core/fetch/MemoryCache.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -4 lines 0 comments Download
M Source/core/fetch/MemoryCacheTest.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +8 lines, -7 lines 0 comments Download
M Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 53 (0 generated)
clamy
@pliard, japhet: PTAL. This makes sure that we only call evict on dead resources when ...
6 years, 10 months ago (2014-02-25 16:02:16 UTC) #1
Philippe
lgtm, thanks Camille and great catch!
6 years, 10 months ago (2014-02-25 17:11:10 UTC) #2
Philippe
On 2014/02/25 17:11:10, Philippe wrote: > lgtm, thanks Camille and great catch! Nate: ping :)
6 years, 9 months ago (2014-03-10 14:48:01 UTC) #3
Nate Chapin
LGTM Sorry for the delay, I forgot this needed OWNERS.
6 years, 9 months ago (2014-03-10 16:40:21 UTC) #4
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 9 months ago (2014-03-10 16:41:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/30001
6 years, 9 months ago (2014-03-10 17:11:51 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 17:28:11 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel, win_blink_rel
6 years, 9 months ago (2014-03-10 17:28:12 UTC) #8
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 9 months ago (2014-03-11 15:59:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/30001
6 years, 9 months ago (2014-03-11 15:59:09 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 15:59:26 UTC) #11
commit-bot: I haz the power
Failed to apply patch for Source/core/fetch/MemoryCache.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-11 15:59:27 UTC) #12
clamy
@eustas: PTAL at the change in the layout test. With this change, the script is ...
6 years, 9 months ago (2014-03-13 15:05:54 UTC) #13
Philippe
@eustas: ping :) On Thu, Mar 13, 2014 at 4:05 PM, <clamy@chromium.org> wrote: > @eustas: ...
6 years, 9 months ago (2014-03-14 09:30:25 UTC) #14
eustas
On 2014/03/14 09:30:25, Philippe wrote: > @eustas: ping :) > > > On Thu, Mar ...
6 years, 9 months ago (2014-03-14 09:48:57 UTC) #15
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 9 months ago (2014-03-19 10:09:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/110001
6 years, 9 months ago (2014-03-19 10:09:56 UTC) #17
Philippe
The CQ bit was unchecked by pliard@chromium.org
6 years, 9 months ago (2014-03-19 10:11:13 UTC) #18
Philippe
Thanks Camille! I'm glad that we will be able to land this! https://chromiumcodereview.appspot.com/179943002/diff/370001/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp ...
6 years, 9 months ago (2014-03-26 16:04:06 UTC) #19
Philippe
https://chromiumcodereview.appspot.com/179943002/diff/370001/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://chromiumcodereview.appspot.com/179943002/diff/370001/Source/core/fetch/Resource.cpp#newcode370 Source/core/fetch/Resource.cpp:370: return (inCache && m_handleCount == targetCount + 1) || ...
6 years, 9 months ago (2014-03-26 17:08:32 UTC) #20
clamy
Thanks Philippe! https://chromiumcodereview.appspot.com/179943002/diff/370001/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://chromiumcodereview.appspot.com/179943002/diff/370001/Source/core/fetch/Resource.cpp#newcode370 Source/core/fetch/Resource.cpp:370: return (inCache && m_handleCount == targetCount + ...
6 years, 9 months ago (2014-03-27 10:47:16 UTC) #21
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 9 months ago (2014-03-27 10:59:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/440001
6 years, 9 months ago (2014-03-27 10:59:41 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 11:06:03 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_compile_dbg
6 years, 9 months ago (2014-03-27 11:06:03 UTC) #25
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 9 months ago (2014-03-27 11:58:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/440001
6 years, 9 months ago (2014-03-27 11:59:03 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 12:06:57 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 12:06:58 UTC) #29
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 9 months ago (2014-03-27 12:59:46 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/440001
6 years, 9 months ago (2014-03-27 12:59:54 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 14:14:00 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 14:14:01 UTC) #33
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 9 months ago (2014-03-27 14:54:50 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/440001
6 years, 9 months ago (2014-03-27 14:54:56 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 15:16:29 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 15:16:29 UTC) #37
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 9 months ago (2014-03-27 16:05:12 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/440001
6 years, 9 months ago (2014-03-27 16:05:23 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 16:14:43 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 16:14:45 UTC) #41
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 9 months ago (2014-03-28 08:29:12 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/440001
6 years, 9 months ago (2014-03-28 08:29:23 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 08:29:29 UTC) #44
commit-bot: I haz the power
Failed to apply patch for Source/core/fetch/MemoryCache.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-28 08:29:30 UTC) #45
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 9 months ago (2014-03-28 09:49:46 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/460001
6 years, 9 months ago (2014-03-28 09:49:52 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 10:32:43 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-28 10:32:44 UTC) #49
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 9 months ago (2014-03-28 10:40:46 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/179943002/460001
6 years, 9 months ago (2014-03-28 10:40:56 UTC) #51
commit-bot: I haz the power
Change committed as 170311
6 years, 9 months ago (2014-03-28 11:39:02 UTC) #52
enne (OOO)
6 years, 9 months ago (2014-03-28 23:21:15 UTC) #53
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/217643003/ by enne@chromium.org.

The reason for reverting is: Possibly causing crashes in
MultiProfileFileManagerBrowserTest

See:
http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome....

Powered by Google App Engine
This is Rietveld 408576698