|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by Michael Lippautz Modified:
3 years, 11 months ago CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[wrapper-tracing] Snapshot: Avoid adding non-Node wrappers to groups
Tests currently rely on the fact that only Nodes are part of retainer
groups.
Code paths will only be exercised once
https://codereview.chromium.org/2627033002/
on the V8 side lands.
BUG=chromium:679724
NOTRY=true
Review-Url: https://codereview.chromium.org/2651923002
Cr-Commit-Position: refs/heads/master@{#445694}
Committed: https://chromium.googlesource.com/chromium/src/+/166ffeb0e2f6c7175f1e0988d145d57c30406e0f
Patch Set 1 #Patch Set 2 : Fix typo #
Total comments: 1
Messages
Total messages: 16 (10 generated)
Description was changed from ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. BUG= ========== to ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. BUG=chromium:679724 ==========
mlippautz@chromium.org changed reviewers: + jochen@chromium.org
lgtm
Description was changed from ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. BUG=chromium:679724 ========== to ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ lands. BUG=chromium:679724 NOTRY=true ==========
Description was changed from ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ lands. BUG=chromium:679724 NOTRY=true ========== to ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ on the V8 side lands. BUG=chromium:679724 NOTRY=true ==========
Description was changed from ========== [wrapper-tracing] Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ on the V8 side lands. BUG=chromium:679724 NOTRY=true ========== to ========== [wrapper-tracing] Snapshot: Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ on the V8 side lands. BUG=chromium:679724 NOTRY=true ==========
The CQ bit was checked by mlippautz@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jochen@chromium.org Link to the patchset: https://codereview.chromium.org/2651923002/#ps20001 (title: "Fix typo")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 20001, "attempt_start_ts": 1485254226954650,
"parent_rev": "eb89fbc6b3248eb435b28e0e2a04b2475ccea184", "commit_rev":
"166ffeb0e2f6c7175f1e0988d145d57c30406e0f"}
Message was sent while issue was closed.
Description was changed from ========== [wrapper-tracing] Snapshot: Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ on the V8 side lands. BUG=chromium:679724 NOTRY=true ========== to ========== [wrapper-tracing] Snapshot: Avoid adding non-Node wrappers to groups Tests currently rely on the fact that only Nodes are part of retainer groups. Code paths will only be exercised once https://codereview.chromium.org/2627033002/ on the V8 side lands. BUG=chromium:679724 NOTRY=true Review-Url: https://codereview.chromium.org/2651923002 Cr-Commit-Position: refs/heads/master@{#445694} Committed: https://chromium.googlesource.com/chromium/src/+/166ffeb0e2f6c7175f1e0988d145... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/166ffeb0e2f6c7175f1e0988d145...
Message was sent while issue was closed.
haraken@chromium.org changed reviewers: + haraken@chromium.org
Message was sent while issue was closed.
LGTM. > Tests currently rely on the fact that only Nodes are part of retainer groups. I'd say that the test should be updated though. Conceptually it should be better if we could list up all reachable wrappers, not limited to Nodes. https://codereview.chromium.org/2651923002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): https://codereview.chromium.org/2651923002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:209: findV8WrappersDirectlyReachableFrom(node); Now, isn't it useless to call findV8WrappersDirectlyReachableFrom?
Message was sent while issue was closed.
On 2017/01/24 21:04:58, haraken wrote: > LGTM. > > > Tests currently rely on the fact that only Nodes are part of retainer > groups. > > I'd say that the test should be updated though. Conceptually it should be better > if we could list up all reachable wrappers, not limited to Nodes. > Totally agree! I pushed the related changes now through for several reasons - The port is complete, meaning that we are unblocked from removing object grouping code from blink. I will prepare further CLs in the following days. - With the port being complete, we can now change the behavior on the blink side including the tests, without modifying any V8 code (unless I am somehow mistaken). I think this makes introducing changes a lot easier as you can avoid the API dance. - We might have an API freeze rather soon to allow launching some other V8 features. I wanted to be sure that the profiler changes are all landed. Additionally, I might no be the right person on deciding what semantics we should have in the snapshot profiler :) > https://codereview.chromium.org/2651923002/diff/20001/third_party/WebKit/Sour... > File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): > > https://codereview.chromium.org/2651923002/diff/20001/third_party/WebKit/Sour... > third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:209: > findV8WrappersDirectlyReachableFrom(node); > > Now, isn't it useless to call findV8WrappersDirectlyReachableFrom? It still collects edge information which is used by the profiler. E.g. EventListeners that are attached to a DOM node.
Message was sent while issue was closed.
On 2017/01/24 21:45:13, Michael Lippautz wrote: > On 2017/01/24 21:04:58, haraken wrote: > > LGTM. > > > > > Tests currently rely on the fact that only Nodes are part of retainer > > groups. > > > > I'd say that the test should be updated though. Conceptually it should be > better > > if we could list up all reachable wrappers, not limited to Nodes. > > > > Totally agree! > > I pushed the related changes now through for several reasons > - The port is complete, meaning that we are unblocked from removing object > grouping code from blink. I will prepare further CLs in the following days. > - With the port being complete, we can now change the behavior on the blink side > including the tests, without modifying any V8 code (unless I am somehow > mistaken). I think this makes introducing changes a lot easier as you can avoid > the API dance. > - We might have an API freeze rather soon to allow launching some other V8 > features. I wanted to be sure that the profiler changes are all landed. > > Additionally, I might no be the right person on deciding what semantics we > should have in the snapshot profiler :) > > > > https://codereview.chromium.org/2651923002/diff/20001/third_party/WebKit/Sour... > > File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): > > > > > https://codereview.chromium.org/2651923002/diff/20001/third_party/WebKit/Sour... > > third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:209: > > findV8WrappersDirectlyReachableFrom(node); > > > > Now, isn't it useless to call findV8WrappersDirectlyReachableFrom? > > It still collects edge information which is used by the profiler. E.g. > EventListeners that are attached to a DOM node. Thanks, makes sense. |
