Create Simplified Heap Iteration for Detached Elements [v8/v8 : main]

0 views
Skip to first unread message

Robert Paveza (Gerrit)

unread,
Jun 25, 2024, 12:18:35 PMJun 25
to Giovanni Del Valle, AyeAye, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Giovanni Del Valle

Robert Paveza added 3 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Robert Paveza . resolved

Looking good! Ready to publish yet?

File test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
Line 501, Patchset 7 (Parent):
Robert Paveza . unresolved

Nit: Probably don't need to delete this line

Line 607, Patchset 7 (Latest):TEST_F(UnifiedHeapSnapshotTest, DetachedJSObjects) {
Robert Paveza . unresolved

Consider adding a comment at the prolog to this test explaining precisely what you're testing. Alternatively, change the name of the test (which might be preferable). Even the comments within your test don't clarify that you're solving the problem of retained external objects.

Open in Gerrit

Related details

Attention is currently required from:
  • Giovanni Del Valle
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Gerrit-Change-Number: 5629921
Gerrit-PatchSet: 7
Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Comment-Date: Tue, 25 Jun 2024 16:18:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Giovanni Del Valle (Gerrit)

unread,
Jun 28, 2024, 1:56:38 PM (13 days ago) Jun 28
to Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Camillo Bruni and Robert Paveza

Giovanni Del Valle added 7 comments

Commit Message
Line 14, Patchset 4:Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Robert Paveza . resolved

These things (from this line onward) probably should not exist as part of your commit message.

Giovanni Del Valle

Done

File include/v8-inspector.h
Line 209, Patchset 4: virtual std::vector<v8::Local<v8::Data>> getDetachedNodes() = 0;
Robert Paveza . resolved

You probably don't want to use the term `nodes` here -- probably `externalObjects` or `embedderObjects` would be more appropriate. `Nodes` is a Blink-ism.

Giovanni Del Valle

Done

File include/v8-profiler.h
Line 1111, Patchset 4:
Robert Paveza . resolved

Nit: whitespace

Giovanni Del Valle

Done

File include/v8-version.h
Line 13, Patchset 4:#define V8_BUILD_NUMBER 52
Robert Paveza . resolved

Beware this file. You don't want to be changing it.

Giovanni Del Valle

Done

File src/profiler/heap-profiler.cc
Line 75, Patchset 4: // Keep only Detached Elements
Robert Paveza . resolved

Mentioned in your other CL: calling this "detached elements" is violating layering. This can exist in any embedder.

Giovanni Del Valle

Done

File test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
Robert Paveza . resolved

Nit: Probably don't need to delete this line

Giovanni Del Valle

Done

Line 607, Patchset 7:TEST_F(UnifiedHeapSnapshotTest, DetachedJSObjects) {
Robert Paveza . resolved

Consider adding a comment at the prolog to this test explaining precisely what you're testing. Alternatively, change the name of the test (which might be preferable). Even the comments within your test don't clarify that you're solving the problem of retained external objects.

Giovanni Del Valle

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
  • Robert Paveza
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Gerrit-Change-Number: 5629921
Gerrit-PatchSet: 8
Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Comment-Date: Fri, 28 Jun 2024 17:56:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Robert Paveza <Rob.P...@microsoft.com>
unsatisfied_requirement
open
diffy

Giovanni Del Valle (Gerrit)

unread,
Jun 28, 2024, 1:58:15 PM (13 days ago) Jun 28
to Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Camillo Bruni and Robert Paveza

Giovanni Del Valle added 1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Giovanni Del Valle . resolved

Hello, could you PTAL at this CL? You were suggested to me as an owner for this CL. Thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
  • Robert Paveza
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Gerrit-Change-Number: 5629921
Gerrit-PatchSet: 8
Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Comment-Date: Fri, 28 Jun 2024 17:58:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Simon Zünd (Gerrit)

unread,
Jul 1, 2024, 3:48:12 AM (11 days ago) Jul 1
to Giovanni Del Valle, Jayson Chen, Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Camillo Bruni, Giovanni Del Valle and Robert Paveza

Simon Zünd added 6 comments

Patchset-level comments
Simon Zünd . resolved

Mostly lgtm with some comments.

Commit Message
Line 13, Patchset 8 (Latest):
Simon Zünd . unresolved

nit: Please file a tracking bug for this feature at crbug.com and add it here as a separate `Bug: <bugid>` line. You can also link to the design doc in the bug as well. This will make finding all relevant CLs across V8, Blink and DevTools easier in the future.

File include/v8-inspector.h
Line 209, Patchset 8 (Latest): virtual std::vector<v8::Local<v8::Data>> getDetachedEmbedderObjects() = 0;
Simon Zünd . unresolved

Does this really need to be an inspector API if it's already available on the `v8::HeapProfiler`? The call-site in the corresponding blink CL (https://crrev.com/c/5634107) could call `isolate_->GetHeapProfiler()->GetDetachedJSWrapperObjects()` directly without a round trip through the inspector APIs.

File src/inspector/v8-inspector-session-impl.cc
Line 452, Patchset 8 (Latest): return m_heapProfilerAgent->getDetachedEmbedderObjects();
Simon Zünd . unresolved

This can be a `nullptr` for untrusted inspector clients (e.g. inspecting extensions). We should check for that here and return an empty `std::vector` if the `m_heapProfilerAgent` is not available.

File src/profiler/heap-profiler.cc
Line 56, Patchset 8 (Latest): std::vector<v8::Local<v8::Data>> JSObjectsFound;
Simon Zünd . unresolved

nit: Please follow standard V8 naming guidelines. `js_objects_found`. Although `detached_js_wrappers` might be a better name.

Line 58, Patchset 8 (Latest): // Find objects that are detached
Simon Zünd . unresolved

This and the comment on line 62 are superfluous. They don't convey any extra info so we should remove them.

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
  • Giovanni Del Valle
  • Robert Paveza
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Gerrit-Change-Number: 5629921
Gerrit-PatchSet: 8
Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Attention: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Comment-Date: Mon, 01 Jul 2024 07:48:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Giovanni Del Valle (Gerrit)

unread,
Jul 1, 2024, 2:23:24 PM (10 days ago) Jul 1
to Simon Zünd, Jayson Chen, Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Camillo Bruni, Robert Paveza and Simon Zünd

Giovanni Del Valle added 4 comments

File include/v8-inspector.h
Line 209, Patchset 8 (Latest): virtual std::vector<v8::Local<v8::Data>> getDetachedEmbedderObjects() = 0;
Simon Zünd . resolved

Does this really need to be an inspector API if it's already available on the `v8::HeapProfiler`? The call-site in the corresponding blink CL (https://crrev.com/c/5634107) could call `isolate_->GetHeapProfiler()->GetDetachedJSWrapperObjects()` directly without a round trip through the inspector APIs.

Giovanni Del Valle

You are correct, this inspector API is unnecessary. I will remove it and call the API directly from the Heap Profiler.

File src/inspector/v8-inspector-session-impl.cc
Line 452, Patchset 8 (Latest): return m_heapProfilerAgent->getDetachedEmbedderObjects();
Simon Zünd . resolved

This can be a `nullptr` for untrusted inspector clients (e.g. inspecting extensions). We should check for that here and return an empty `std::vector` if the `m_heapProfilerAgent` is not available.

Giovanni Del Valle

Since I've removed the unnecessary Inspector API, this code was removed.

File src/profiler/heap-profiler.cc
Line 56, Patchset 8 (Latest): std::vector<v8::Local<v8::Data>> JSObjectsFound;
Simon Zünd . resolved

nit: Please follow standard V8 naming guidelines. `js_objects_found`. Although `detached_js_wrappers` might be a better name.

Giovanni Del Valle

Done

Line 58, Patchset 8 (Latest): // Find objects that are detached
Simon Zünd . resolved

This and the comment on line 62 are superfluous. They don't convey any extra info so we should remove them.

Giovanni Del Valle

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
  • Robert Paveza
  • Simon Zünd
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Gerrit-Change-Number: 5629921
Gerrit-PatchSet: 8
Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Simon Zünd <szu...@chromium.org>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Comment-Date: Mon, 01 Jul 2024 18:23:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Simon Zünd <szu...@chromium.org>
unsatisfied_requirement
open
diffy

Giovanni Del Valle (Gerrit)

unread,
Jul 1, 2024, 4:50:02 PM (10 days ago) Jul 1
to Simon Zünd, Jayson Chen, Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Camillo Bruni, Robert Paveza and Simon Zünd

Giovanni Del Valle added 1 comment

Commit Message
Line 13, Patchset 8:
Simon Zünd . resolved

nit: Please file a tracking bug for this feature at crbug.com and add it here as a separate `Bug: <bugid>` line. You can also link to the design doc in the bug as well. This will make finding all relevant CLs across V8, Blink and DevTools easier in the future.

Giovanni Del Valle

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
  • Robert Paveza
  • Simon Zünd
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
Gerrit-Change-Number: 5629921
Gerrit-PatchSet: 9
Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Attention: Simon Zünd <szu...@chromium.org>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
Gerrit-Comment-Date: Mon, 01 Jul 2024 20:49:57 +0000
unsatisfied_requirement
open
diffy

Simon Zünd (Gerrit)

unread,
Jul 2, 2024, 12:34:03 AM (10 days ago) Jul 2
to Giovanni Del Valle, Jayson Chen, Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
Attention needed from Camillo Bruni, Giovanni Del Valle and Robert Paveza

Simon Zünd voted and added 2 comments

Votes added by Simon Zünd

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 10 (Latest):
Simon Zünd . resolved

lgtm from my side, but now it's mostly non inspector things so please wait for Camillo :)

File src/inspector/v8-heap-profiler-agent-impl.cc
Line 449, Patchset 10 (Latest):
Simon Zünd . unresolved

left-over whitespace change we could revert.

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
  • Giovanni Del Valle
  • Robert Paveza
    Submit Requirements:
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
    Gerrit-Change-Number: 5629921
    Gerrit-PatchSet: 10
    Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
    Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
    Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Attention: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Comment-Date: Tue, 02 Jul 2024 04:33:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Camillo Bruni (Gerrit)

    unread,
    Jul 4, 2024, 4:52:51 AM (8 days ago) Jul 4
    to Giovanni Del Valle, Simon Zünd, Jayson Chen, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
    Attention needed from Giovanni Del Valle and Robert Paveza

    Camillo Bruni added 5 comments

    Patchset-level comments
    Camillo Bruni . resolved
    • generally looking good (need some gc folks to have a look, I'm not too familiar with that system).
    • Can you remove the cherry pick? We only use that for backmerges
    File src/profiler/heap-profiler.cc
    Line 56, Patchset 10 (Latest): std::vector<v8::Local<v8::Data>> js_objects_found;
    Camillo Bruni . unresolved

    This can only contain `v8::Value`, might be nicer to tighten this down.

    Line 68, Patchset 10 (Latest): v8::Local<v8::Data> data(
    Camillo Bruni . unresolved

    Can this be directly `v8::Value`?

    Line 72, Patchset 10 (Latest): if (detachedness != v8::EmbedderGraph::Node::Detachedness::kDetached) continue;
    Camillo Bruni . unresolved

    nit: please run `git cl format`

    File test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
    Line 614, Patchset 10 (Latest): // Test ensures that objects that are retained by a JS reference are obtained by
    // the GetDetachedJSWrapperObjects() function
    Camillo Bruni . unresolved

    nit: line width

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Giovanni Del Valle
    • Robert Paveza
    Submit Requirements:
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
    Gerrit-Change-Number: 5629921
    Gerrit-PatchSet: 10
    Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
    Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
    Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Attention: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 08:52:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy

    Camillo Bruni (Gerrit)

    unread,
    Jul 4, 2024, 4:56:00 AM (8 days ago) Jul 4
    to Giovanni Del Valle, Simon Zünd, Jayson Chen, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
    Attention needed from Giovanni Del Valle and Robert Paveza

    Camillo Bruni added 2 comments

    File include/v8-profiler.h
    Line 1114, Patchset 10 (Latest): * \returns the list of Detached JS Wrapper Objects.
    Camillo Bruni . unresolved

    nit: Feel free to drop this comment I don't think it adds anything over the method signature :).

    Line 1112, Patchset 10 (Latest): * Obtains list of Detached JS Wrapper Objects.
    Camillo Bruni . unresolved

    Please extend the comment that this runs a GC and walks the whole heap (aka isn't a particularly fast operation)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Giovanni Del Valle
    • Robert Paveza
    Submit Requirements:
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
    Gerrit-Change-Number: 5629921
    Gerrit-PatchSet: 10
    Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
    Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
    Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Attention: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 08:55:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy

    Giovanni Del Valle (Gerrit)

    unread,
    Jul 5, 2024, 5:56:24 PM (6 days ago) Jul 5
    to Simon Zünd, Jayson Chen, Camillo Bruni, AyeAye, Robert Paveza, oilpan-r...@chromium.org, cbruni...@chromium.org, devtools-...@chromium.org, v8-m...@googlegroups.com, v8-re...@googlegroups.com
    Attention needed from Camillo Bruni, Robert Paveza and Simon Zünd

    Giovanni Del Valle added 7 comments

    File include/v8-profiler.h
    Line 1114, Patchset 10: * \returns the list of Detached JS Wrapper Objects.
    Camillo Bruni . resolved

    nit: Feel free to drop this comment I don't think it adds anything over the method signature :).

    Giovanni Del Valle

    Done

    Line 1112, Patchset 10: * Obtains list of Detached JS Wrapper Objects.
    Camillo Bruni . resolved

    Please extend the comment that this runs a GC and walks the whole heap (aka isn't a particularly fast operation)

    Giovanni Del Valle

    Done

    File src/inspector/v8-heap-profiler-agent-impl.cc
    Line 449, Patchset 10:
    Simon Zünd . resolved

    left-over whitespace change we could revert.

    Giovanni Del Valle

    Done

    File src/profiler/heap-profiler.cc
    Line 56, Patchset 10: std::vector<v8::Local<v8::Data>> js_objects_found;
    Camillo Bruni . unresolved

    This can only contain `v8::Value`, might be nicer to tighten this down.

    Giovanni Del Valle

    I've changed it, but I just want to clarify that you meant the vector should be a std::vector<v8::local<v8::value>>, or a std::vector<v8::value>?

    Line 68, Patchset 10: v8::Local<v8::Data> data(
    Camillo Bruni . resolved

    Can this be directly `v8::Value`?

    Giovanni Del Valle

    Done

    Line 72, Patchset 10: if (detachedness != v8::EmbedderGraph::Node::Detachedness::kDetached) continue;
    Camillo Bruni . resolved

    nit: please run `git cl format`

    Giovanni Del Valle

    Done

    File test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
    Line 614, Patchset 10: // Test ensures that objects that are retained by a JS reference are obtained by
    // the GetDetachedJSWrapperObjects() function
    Camillo Bruni . resolved

    nit: line width

    Giovanni Del Valle

    Converted the comment to one line, then ran git cl format

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Camillo Bruni
    • Robert Paveza
    • Simon Zünd
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I5dd543b961a19fd3e3252eba2385b52127927be7
    Gerrit-Change-Number: 5629921
    Gerrit-PatchSet: 11
    Gerrit-Owner: Giovanni Del Valle <t-del...@microsoft.com>
    Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Reviewer: Simon Zünd <szu...@chromium.org>
    Gerrit-CC: Jayson Chen <jayso...@microsoft.com>
    Gerrit-CC: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Attention: Simon Zünd <szu...@chromium.org>
    Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Attention: Robert Paveza <Rob.P...@microsoft.com>
    Gerrit-Comment-Date: Fri, 05 Jul 2024 21:56:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Simon Zünd <szu...@chromium.org>
    Comment-In-Reply-To: Camillo Bruni <cbr...@chromium.org>
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages