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

Issue 1915113005: [WeakMemoryCache] Field-Trial: Make Reference from MemoryCache to Resource weak (Closed)

Created:
4 years, 8 months ago by hiroshige
Modified:
4 years, 6 months ago
CC:
chromium-reviews, caseq+blink_chromium.org, blink-reviews-style_chromium.org, blink-reviews-css, darktears, tyoshino+watch_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, sergeyv+blink_chromium.org, rwlbuis, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@MemoryCache_1b0
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WeakMemoryCache] Field-Trial: Make Reference from MemoryCache to Resource weak This CL adds two RuntimeEnabledFeatures controlled by Field Trials to evaluate their feasibility: - |WeakMemoryCache| switches whether the references from MemoryCache to Resource are weak or not. A corresponding flag |enable-weak-memorycache| is added to chrome://flags. Null checks are added to MemoryCache to handle weak pointers. - |DoNotUnlockSharedBuffer| skips SharedBuffer::unlock() in Resource::unlock(). This CL will be reverted before going to stable (or even before going to beta). BUG=603462 Committed: https://crrev.com/e46449c9825bf0891d9b2ba9d0bcaa6ce6cc959f Cr-Commit-Position: refs/heads/master@{#397312}

Patch Set 1 #

Patch Set 2 : Weak=True #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Do not enable features on tests. #

Patch Set 9 : Rebase. #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase. #

Total comments: 4

Patch Set 12 : Add DCHECK #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -18 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/content_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +41 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 69 (33 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/1915113005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/1
4 years, 8 months ago (2016-04-26 09:34:54 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/1915113005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/20001
4 years, 8 months ago (2016-04-26 09:36:47 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-26 11:00:36 UTC) #6
hiroshige
This is WIP CL for doing a Finch experiment to make references from MemoryCache to ...
4 years, 8 months ago (2016-04-26 12:59:01 UTC) #8
hiroshige
On 2016/04/26 12:59:01, hiroshige wrote: > This is WIP CL for doing a Finch experiment ...
4 years, 8 months ago (2016-04-26 13:03:48 UTC) #9
Nate Chapin
On 2016/04/26 12:59:01, hiroshige wrote: > This is WIP CL for doing a Finch experiment ...
4 years, 7 months ago (2016-04-28 16:45:21 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/60001
4 years, 7 months ago (2016-05-10 09:22:26 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/120001
4 years, 7 months ago (2016-05-10 10:53:24 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/226191)
4 years, 7 months ago (2016-05-10 12:02:01 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/140001
4 years, 7 months ago (2016-05-11 10:24:01 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/3668) ios-device-gn on ...
4 years, 7 months ago (2016-05-11 10:25:58 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/160001
4 years, 7 months ago (2016-05-12 09:30:39 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 10:55:35 UTC) #26
hiroshige
PTAL. I'm planning to land this to M-53.
4 years, 7 months ago (2016-05-17 09:11:46 UTC) #28
yhirano
Don't you need resources.grd and about_flags.cc changes for DoNotUnlockSharedBuffer?
4 years, 7 months ago (2016-05-19 07:39:22 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/200001
4 years, 7 months ago (2016-05-26 06:15:37 UTC) #31
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 06:31:28 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/220001
4 years, 7 months ago (2016-05-26 07:07:24 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/167874)
4 years, 7 months ago (2016-05-26 08:06:44 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/240001
4 years, 6 months ago (2016-05-27 07:46:51 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/12473) ios-device-gn on ...
4 years, 6 months ago (2016-05-27 07:48:48 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/260001
4 years, 6 months ago (2016-05-27 08:21:36 UTC) #43
hiroshige
On 2016/05/19 07:39:22, yhirano wrote: > Don't you need resources.grd and about_flags.cc changes for > ...
4 years, 6 months ago (2016-05-27 08:28:29 UTC) #47
commit-bot: I haz the power
Dry run: 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/229416)
4 years, 6 months ago (2016-05-27 12:35:27 UTC) #49
yhirano
> I thought DoNotUnlockSharedBuffer is too internal to add > it as a chrome://flags flag ...
4 years, 6 months ago (2016-05-30 08:13:24 UTC) #50
Ilya Sherman
histograms.xml lgtm
4 years, 6 months ago (2016-05-31 23:20:22 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/300001
4 years, 6 months ago (2016-06-01 02:23:45 UTC) #53
hiroshige
Also I updated the CL description. https://codereview.chromium.org/1915113005/diff/260001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/1915113005/diff/260001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode65 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:65: : m_inLiveDecodedResourcesList(false) On ...
4 years, 6 months ago (2016-06-01 02:25:14 UTC) #55
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 04:10:25 UTC) #57
hiroshige
+kinuko@ as an OWNER, particularly of content/ third_party/WebKit/Source/platform/ Memo: other OWNERs: japhet@ and kinuko@: third_party/WebKit/Source/core/fetch/ ...
4 years, 6 months ago (2016-06-01 05:05:38 UTC) #59
yhirano
lgtm
4 years, 6 months ago (2016-06-01 08:27:02 UTC) #60
Nate Chapin
LGTM, but I think you'll still need kinuko's review for platform/OWNERS
4 years, 6 months ago (2016-06-01 23:56:37 UTC) #61
kinuko
lgtm, thanks for making this work in Finch setting!
4 years, 6 months ago (2016-06-02 01:51:51 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915113005/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915113005/300001
4 years, 6 months ago (2016-06-02 05:01:55 UTC) #65
commit-bot: I haz the power
Committed patchset #13 (id:300001)
4 years, 6 months ago (2016-06-02 06:27:55 UTC) #67
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 06:29:50 UTC) #69
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/e46449c9825bf0891d9b2ba9d0bcaa6ce6cc959f
Cr-Commit-Position: refs/heads/master@{#397312}

Powered by Google App Engine
This is Rietveld 408576698