|
|
Created:
4 years, 4 months ago by tasak Modified:
4 years, 3 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. |
DescriptionMake Resource MemoryCoordinatorClient:
- implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended.
- intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4
- one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing
BUG=635419
Committed: https://crrev.com/17888b419ca845a6762aae5287b449424997cc88
Cr-Commit-Position: refs/heads/master@{#414425}
Patch Set 1 #Patch Set 2 : Protect CachedMetadata #Patch Set 3 : Updated Resource::trace() #Patch Set 4 : Removed unregisterClient. #
Total comments: 2
Patch Set 5 : Added comment #
Total comments: 4
Messages
Total messages: 50 (38 generated)
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Prune CachedMetadata when Resource is pruned. BUG= ========== to ========== Prune CachedMetadata when Resource is pruned. BUG=635419 ==========
tasak@google.com changed reviewers: + haraken@chromium.org
Would you review this CL?
haraken@chromium.org changed reviewers: + yhirano@chromium.org
LGTM on my side. yhirano@: Does it look good?
I guess clients may assume a cached metadata will not be cleared if they retain the resource and other clients don't clear the metadata. Resource::unlock() rejects to unlock |m_data| if there are clients, don't you need similar logic?
Thank you. On 2016/08/17 09:00:11, yhirano wrote: > I guess clients may assume a cached metadata will not be cleared if they retain > the resource and other clients don't clear the metadata. Resource::unlock() > rejects to unlock |m_data| if there are clients, don't you need similar logic? I see. I agree with you. I will refactor V8ScriptRunner and ScriptSteamer to lock CachedMetadata while the classes are using CachedMetadata. I will also add unit tests (to check that reallly CachedMetadata is purged and really CachedMetadata is created again).
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
Description was changed from ========== Prune CachedMetadata when Resource is pruned. BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient. - implemented purgeToSuspend to clear CachedMetadata before suspend a renderer. BUG=635419 ==========
Description was changed from ========== Make Resource MemoryCoordinatorClient. - implemented purgeToSuspend to clear CachedMetadata before suspend a renderer. BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient. - implemented purgeToSuspend to clear CachedMetadata before suspend a renderer. - protected CachedMetadata while V8ScriptRunner is using the cache. BUG=635419 ==========
Description was changed from ========== Make Resource MemoryCoordinatorClient. - implemented purgeToSuspend to clear CachedMetadata before suspend a renderer. - protected CachedMetadata while V8ScriptRunner is using the cache. BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient: - implement purgeToSuspend to clear CachedMetadata before suspend a renderer. - protect CachedMetadata while V8ScriptRunner is using the cache. BUG=635419 ==========
Patchset #2 (id:40001) has been deleted
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
I updated the patch to protect CachedMetadata, i.e. RefPtr<CachedMetadata> codeCache(); .... So would you review the newest patch?
Description was changed from ========== Make Resource MemoryCoordinatorClient: - implement purgeToSuspend to clear CachedMetadata before suspend a renderer. - protect CachedMetadata while V8ScriptRunner is using the cache. BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 ==========
Description was changed from ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 ==========
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
tasak@google.com changed reviewers: + hiroshige@chromium.org
hiroshige@, would you review this CL?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2249373002/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h (right): https://codereview.chromium.org/2249373002/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h:30: // Returns cached metadata of the given type associated with this resource. Please add a comment saying that this metadata can be pruned at any time.
The CQ bit was checked by tasak@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thank you. https://codereview.chromium.org/2249373002/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h (right): https://codereview.chromium.org/2249373002/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/CachedMetadataHandler.h:30: // Returns cached metadata of the given type associated with this resource. On 2016/08/25 01:25:12, yhirano wrote: > Please add a comment saying that this metadata can be pruned at any time. Done.
The CQ bit was unchecked by tasak@google.com
The CQ bit was checked by tasak@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from haraken@chromium.org, yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2249373002/#ps120001 (title: "Added comment")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Can we add tests to prepareToSuspend()? https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp:293: if (codeCache.get()) { We can remove .get() here. https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp (right): https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp:182: return codeCache.get() We can remove .get() here. https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/Resource.cpp:156: return m_cachedMetadata.get(); We can remove .get() here. https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.cpp (right): https://codereview.chromium.org/2249373002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.cpp:52: return m_cachedMetadata.get(); We can remove .get() here.
Message was sent while issue was closed.
Description was changed from ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 ========== to ========== Make Resource MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJ... BUG=635419 Committed: https://crrev.com/17888b419ca845a6762aae5287b449424997cc88 Cr-Commit-Position: refs/heads/master@{#414425} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/17888b419ca845a6762aae5287b449424997cc88 Cr-Commit-Position: refs/heads/master@{#414425} |