[heap] Add StackStartMarker for cppgc [v8/v8 : main]

0 views
Skip to first unread message

Dominik Inführ (Gerrit)

unread,
Mar 13, 2026, 9:02:39 AMMar 13
to Michael Lippautz, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Dominik Inführ added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Dominik Inführ . resolved

PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: Ic9a7d428684bb835d372873beb821e412e131246
Gerrit-Change-Number: 7666257
Gerrit-PatchSet: 4
Gerrit-Owner: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
Gerrit-Comment-Date: Fri, 13 Mar 2026 13:02:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Michael Lippautz (Gerrit)

unread,
Mar 13, 2026, 10:49:36 AMMar 13
to Dominik Inführ, V8 LUCI CQ, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ

Michael Lippautz added 1 comment

File include/cppgc/heap.h
Line 38, Patchset 4 (Latest):class V8_EXPORT StackStartMarker {
Michael Lippautz . unresolved

Can you add a test that shows how this should be used? There should be cppgc unittests that can just be extended.

Open in Gerrit

Related details

Attention is currently required from:
  • Dominik Inführ
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    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: Ic9a7d428684bb835d372873beb821e412e131246
    Gerrit-Change-Number: 7666257
    Gerrit-PatchSet: 4
    Gerrit-Owner: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Comment-Date: Fri, 13 Mar 2026 14:49:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Dominik Inführ (Gerrit)

    unread,
    Mar 16, 2026, 6:15:12 AMMar 16
    to AyeAye, Michael Lippautz, V8 LUCI CQ, Hannes Payer, victorgo...@chromium.org, cbruni...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Michael Lippautz

    Dominik Inführ added 2 comments

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Dominik Inführ . resolved

    Added a few tests. PTALA

    File include/cppgc/heap.h
    Line 38, Patchset 4:class V8_EXPORT StackStartMarker {
    Michael Lippautz . resolved

    Can you add a test that shows how this should be used? There should be cppgc unittests that can just be extended.

    Dominik Inführ

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Lippautz
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      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: Ic9a7d428684bb835d372873beb821e412e131246
      Gerrit-Change-Number: 7666257
      Gerrit-PatchSet: 5
      Gerrit-Owner: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Comment-Date: Mon, 16 Mar 2026 10:15:08 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
      unsatisfied_requirement
      open
      diffy

      Michael Lippautz (Gerrit)

      unread,
      Mar 16, 2026, 8:36:29 AMMar 16
      to Dominik Inführ, AyeAye, V8 LUCI CQ, Hannes Payer, victorgo...@chromium.org, cbruni...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
      Attention needed from Dominik Inführ

      Michael Lippautz voted and added 1 comment

      Votes added by Michael Lippautz

      Code-Review+1

      1 comment

      File test/unittests/heap/cppgc-js/cpp-heap-stack-start-marker-unittest.cc
      Line 22, Patchset 5 (Latest):TEST_F(CppHeapStackStartMarkerTest, StackStartMarkerIsUsed) {
      Michael Lippautz . resolved

      Nice!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dominik Inführ
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      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: Ic9a7d428684bb835d372873beb821e412e131246
      Gerrit-Change-Number: 7666257
      Gerrit-PatchSet: 5
      Gerrit-Owner: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Comment-Date: Mon, 16 Mar 2026 12:36:25 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Dominik Inführ (Gerrit)

      unread,
      Mar 16, 2026, 8:38:29 AMMar 16
      to Michael Lippautz, AyeAye, V8 LUCI CQ, Hannes Payer, victorgo...@chromium.org, cbruni...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

      Dominik Inführ voted and added 1 comment

      Votes added by Dominik Inführ

      Commit-Queue+2

      1 comment

      Patchset-level comments
      Dominik Inführ . resolved

      Thanks for the review!

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      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: Ic9a7d428684bb835d372873beb821e412e131246
      Gerrit-Change-Number: 7666257
      Gerrit-PatchSet: 5
      Gerrit-Owner: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-Comment-Date: Mon, 16 Mar 2026 12:38:22 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      V8 LUCI CQ (Gerrit)

      unread,
      Mar 16, 2026, 8:40:20 AMMar 16
      to Dominik Inführ, Michael Lippautz, AyeAye, Hannes Payer, victorgo...@chromium.org, cbruni...@chromium.org, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

      V8 LUCI CQ submitted the change

      Change information

      Commit message:
      [heap] Add StackStartMarker for cppgc

      For conservative stack scanning we currently scan for references up
      until the stack top. But this includes stack frames like that of
      _start which definitely do not have pointers into the cppgc heap.

      This CL adds a StackStartMarker class which embedders can optionally
      use to decrease the stack height considered during conservative
      stack scanning. This reduces the chance of false positives.
      Bug: 492198560
      Change-Id: Ic9a7d428684bb835d372873beb821e412e131246
      Commit-Queue: Dominik Inführ <dinf...@chromium.org>
      Reviewed-by: Michael Lippautz <mlip...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#105816}
      Files:
      • M include/cppgc/heap.h
      • M include/v8-cppgc.h
      • M src/heap/base/stack.h
      • M src/heap/cppgc-js/cpp-heap.cc
      • M src/heap/cppgc-js/cpp-heap.h
      • M src/heap/cppgc/heap-base.cc
      • M src/heap/cppgc/heap-base.h
      • M src/heap/cppgc/heap.cc
      • M src/heap/heap.cc
      • M test/unittests/BUILD.gn
      • A test/unittests/heap/cppgc-js/cpp-heap-stack-start-marker-unittest.cc
      • A test/unittests/heap/cppgc/stack-start-marker-unittest.cc
      • M test/unittests/heap/cppgc/stack-unittest.cc
      Change size: M
      Delta: 13 files changed, 151 insertions(+), 16 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Michael Lippautz
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: Ic9a7d428684bb835d372873beb821e412e131246
      Gerrit-Change-Number: 7666257
      Gerrit-PatchSet: 6
      Gerrit-Owner: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages