Move GlobalSafepoint to IsolateGroup [v8/v8 : main]

0 views
Skip to first unread message

Dominik Inführ (Gerrit)

unread,
Jun 19, 2026, 3:22:09 AM (13 days ago) Jun 19
to Thomas Lively, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Jakob Kummerow, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Jakob Kummerow and Thomas Lively

Dominik Inführ voted and added 5 comments

Votes added by Dominik Inführ

Code-Review+1

5 comments

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

Thanks a lot! LGTM with nits

Commit Message
Line 7, Patchset 1 (Latest):Move GlobalSafepoint to IsolateGroup
Dominik Inführ . unresolved

Nit: [execution, heap]

File src/heap/safepoint.h
Line 208, Patchset 1 (Latest): if (Isolate* shared_isolate = shared_space_isolate()) {
Dominik Inführ . unresolved

Nit: There should always be a shared space isolate, so I would drop the if here.

File src/init/isolate-group.cc
Line 374, Patchset 1 (Latest): global_safepoint_ = std::make_unique<GlobalSafepoint>(this);
Dominik Inführ . unresolved

I think you can move this into the else branch of `has_shared_space_isolate()`. When we set up the shared space isolate, we can also allocate GlobalSafepoint.

Line 400, Patchset 1 (Latest): shared_space_isolate_ = nullptr;
Dominik Inführ . unresolved

Nit: We could drop GlobalSafepoint here when dropping the shared space isolate. This mirrors AddIsolate() which sets up GlobalSafepoint when the shared space isolate is added. That said, this shouldn't affect Chrome where the main/shared-space isolate never goes away. There may be a few tests that trigger this code path though.

Open in Gerrit

Related details

Attention is currently required from:
  • Jakob Kummerow
  • Thomas Lively
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
Gerrit-Change-Number: 7966118
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Lively <tli...@google.com>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Thomas Lively <tli...@google.com>
Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Jun 2026 07:22:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Jakob Kummerow (Gerrit)

unread,
Jun 19, 2026, 9:02:17 AM (13 days ago) Jun 19
to Thomas Lively, Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Thomas Lively

Jakob Kummerow voted and added 2 comments

Votes added by Jakob Kummerow

Code-Review+1

2 comments

Patchset-level comments
Jakob Kummerow . resolved

LGTM

File src/heap/safepoint.h
Line 193, Patchset 1 (Latest): Isolate* shared_space_isolate() const;
Jakob Kummerow . unresolved

To fix the linker errors, this needs `V8_EXPORT_PRIVATE` (like on line 218, making this symbol visible on shared-library builds so that tests can call this).

Open in Gerrit

Related details

Attention is currently required from:
  • Thomas Lively
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
Gerrit-Change-Number: 7966118
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Lively <tli...@google.com>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Thomas Lively <tli...@google.com>
Gerrit-Comment-Date: Fri, 19 Jun 2026 13:02:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Thomas Lively (Gerrit)

unread,
Jun 25, 2026, 1:16:54 PM (7 days ago) Jun 25
to Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Jakob Kummerow

Thomas Lively added 5 comments

Commit Message
Line 7, Patchset 1:Move GlobalSafepoint to IsolateGroup
Dominik Inführ . resolved

Nit: [execution, heap]

Thomas Lively

Done

File src/heap/safepoint.h
Line 208, Patchset 1: if (Isolate* shared_isolate = shared_space_isolate()) {
Dominik Inführ . resolved

Nit: There should always be a shared space isolate, so I would drop the if here.

Thomas Lively

I've replaced the if with a DCHECK_NOT_NULL. The follow-up CL that will add a flag for enabling global safepoints without the shared heap might need the if again, but we can cross that bridge when we get to it.

Line 193, Patchset 1: Isolate* shared_space_isolate() const;
Jakob Kummerow . resolved

To fix the linker errors, this needs `V8_EXPORT_PRIVATE` (like on line 218, making this symbol visible on shared-library builds so that tests can call this).

Thomas Lively

Done

File src/init/isolate-group.cc
Line 374, Patchset 1: global_safepoint_ = std::make_unique<GlobalSafepoint>(this);
Dominik Inführ . unresolved

I think you can move this into the else branch of `has_shared_space_isolate()`. When we set up the shared space isolate, we can also allocate GlobalSafepoint.

Thomas Lively

The follow-on CL will have to move this out of the `v8_flags.shared_heap` check entirely, so I think keeping it somewhat separated here is useful.

Line 400, Patchset 1: shared_space_isolate_ = nullptr;
Dominik Inführ . unresolved

Nit: We could drop GlobalSafepoint here when dropping the shared space isolate. This mirrors AddIsolate() which sets up GlobalSafepoint when the shared space isolate is added. That said, this shouldn't affect Chrome where the main/shared-space isolate never goes away. There may be a few tests that trigger this code path though.

Thomas Lively

Tying the lifetime of the GlobalSafepoint to the the lifetime of the shared space isolate is contrary to the goal of making it possible to have a GlobalSafepoint without a shared heap, i.e. without a shared space isolate.

Open in Gerrit

Related details

Attention is currently required from:
  • Dominik Inführ
  • Jakob Kummerow
Submit Requirements:
  • requirement 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
Gerrit-Change-Number: 7966118
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Lively <tli...@google.com>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Jun 2026 17:16:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jakob Kummerow <jkum...@chromium.org>
Comment-In-Reply-To: Dominik Inführ <dinf...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Thomas Lively (Gerrit)

unread,
Jun 26, 2026, 2:33:53 PM (5 days ago) Jun 26
to Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Jakob Kummerow

Thomas Lively voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Dominik Inführ
  • Jakob Kummerow
Submit Requirements:
  • requirement 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
Gerrit-Change-Number: 7966118
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Lively <tli...@google.com>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Reviewer: Thomas Lively <tli...@google.com>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Jun 2026 18:33:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Thomas Lively (Gerrit)

unread,
Jun 29, 2026, 6:10:12 PM (2 days ago) Jun 29
to Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Jakob Kummerow

Thomas Lively added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Thomas Lively . resolved

@jkummerow, @dinfuehr, Please take another look because the votes were reset when the last patch set was uploaded.

Gerrit-Comment-Date: Mon, 29 Jun 2026 22:10:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Jakob Kummerow (Gerrit)

unread,
Jun 30, 2026, 6:23:08 AM (2 days ago) Jun 30
to Thomas Lively, Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Thomas Lively

Jakob Kummerow voted

Code-Review+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Dominik Inführ
  • Thomas Lively
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
    Gerrit-Change-Number: 7966118
    Gerrit-PatchSet: 3
    Gerrit-Owner: Thomas Lively <tli...@google.com>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Thomas Lively <tli...@google.com>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Thomas Lively <tli...@google.com>
    Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Comment-Date: Tue, 30 Jun 2026 10:23:03 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jakob Kummerow (Gerrit)

    unread,
    Jun 30, 2026, 6:39:28 AM (2 days ago) Jun 30
    to Thomas Lively, Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ and Thomas Lively

    Jakob Kummerow added 1 comment

    File src/heap/safepoint.h
    Line 149, Patchset 3 (Latest): V8_EXPORT_PRIVATE Isolate* shared_space_isolate() const;
    Jakob Kummerow . unresolved

    It's `GlobalSafepoint::shared_space_isolate` that needs this annotation, not `IsolateSafepoint::…`.

    Gerrit-Comment-Date: Tue, 30 Jun 2026 10:39:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dominik Inführ (Gerrit)

    unread,
    Jun 30, 2026, 6:39:46 AM (2 days ago) Jun 30
    to Thomas Lively, Jakob Kummerow, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Thomas Lively

    Dominik Inführ voted and added 1 comment

    Votes added by Dominik Inführ

    Code-Review+1

    1 comment

    Patchset-level comments
    Dominik Inführ . resolved

    Still LGTM

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Thomas Lively
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
    Gerrit-Change-Number: 7966118
    Gerrit-PatchSet: 3
    Gerrit-Owner: Thomas Lively <tli...@google.com>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Thomas Lively <tli...@google.com>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Thomas Lively <tli...@google.com>
    Gerrit-Comment-Date: Tue, 30 Jun 2026 10:39:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Lively (Gerrit)

    unread,
    Jul 1, 2026, 12:20:30 AM (yesterday) Jul 1
    to Dominik Inführ, Jakob Kummerow, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ and Jakob Kummerow

    Thomas Lively voted and added 2 comments

    Votes added by Thomas Lively

    Auto-Submit+1
    Commit-Queue+1

    2 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Thomas Lively . resolved

    I'll need the +1 votes again. Sorry for the churn.

    File src/heap/safepoint.h
    Line 149, Patchset 3: V8_EXPORT_PRIVATE Isolate* shared_space_isolate() const;
    Jakob Kummerow . unresolved

    It's `GlobalSafepoint::shared_space_isolate` that needs this annotation, not `IsolateSafepoint::…`.

    Thomas Lively

    Thanks, fixed. What is the build config that would let me reproduce this problem locally? I took a look at the config on the failing bots, but it wasn't obvious to me.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dominik Inführ
    • Jakob Kummerow
    Submit Requirements:
    • requirement 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
    Gerrit-Change-Number: 7966118
    Gerrit-PatchSet: 4
    Gerrit-Owner: Thomas Lively <tli...@google.com>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Reviewer: Thomas Lively <tli...@google.com>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
    Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Jul 2026 04:20:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Jakob Kummerow <jkum...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dominik Inführ (Gerrit)

    unread,
    Jul 1, 2026, 2:21:54 AM (24 hours ago) Jul 1
    to Thomas Lively, Jakob Kummerow, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Jakob Kummerow and Thomas Lively

    Dominik Inführ voted and added 1 comment

    Votes added by Dominik Inführ

    Code-Review+1

    1 comment

    Patchset-level comments
    Dominik Inführ . resolved

    Still LGTM

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Jakob Kummerow
    • Thomas Lively
    Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
      Gerrit-Change-Number: 7966118
      Gerrit-PatchSet: 4
      Gerrit-Owner: Thomas Lively <tli...@google.com>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
      Gerrit-Reviewer: Thomas Lively <tli...@google.com>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-Attention: Thomas Lively <tli...@google.com>
      Gerrit-Attention: Jakob Kummerow <jkum...@chromium.org>
      Gerrit-Comment-Date: Wed, 01 Jul 2026 06:21:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Jakob Kummerow (Gerrit)

      unread,
      Jul 1, 2026, 9:48:54 AM (16 hours ago) Jul 1
      to Thomas Lively, Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
      Attention needed from Thomas Lively

      Jakob Kummerow voted and added 1 comment

      Votes added by Jakob Kummerow

      Code-Review+1
      Commit-Queue+2

      1 comment

      File src/heap/safepoint.h
      Line 149, Patchset 3: V8_EXPORT_PRIVATE Isolate* shared_space_isolate() const;
      Jakob Kummerow . resolved

      It's `GlobalSafepoint::shared_space_isolate` that needs this annotation, not `IsolateSafepoint::…`.

      Thomas Lively

      Thanks, fixed. What is the build config that would let me reproduce this problem locally? I took a look at the config on the failing bots, but it wasn't obvious to me.

      Jakob Kummerow

      When you expand step `7. build` and then nested in it step `5. lookup GN args`, and then click the `gn_args` link, you'll see the GN args. Usually that's enough to repro.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Thomas Lively
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • 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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
      Gerrit-Change-Number: 7966118
      Gerrit-PatchSet: 4
      Gerrit-Owner: Thomas Lively <tli...@google.com>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
      Gerrit-Reviewer: Thomas Lively <tli...@google.com>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-Attention: Thomas Lively <tli...@google.com>
      Gerrit-Comment-Date: Wed, 01 Jul 2026 13:48:49 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Thomas Lively <tli...@google.com>
      Comment-In-Reply-To: Jakob Kummerow <jkum...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Jakob Kummerow (Gerrit)

      unread,
      Jul 1, 2026, 9:49:49 AM (16 hours ago) Jul 1
      to Thomas Lively, Jakob Kummerow, Dominik Inführ, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
      Attention needed from Thomas Lively

      Jakob Kummerow voted and added 2 comments

      Votes added by Jakob Kummerow

      Commit-Queue+2

      2 comments

      File src/init/isolate-group.cc
      Line 374, Patchset 1: global_safepoint_ = std::make_unique<GlobalSafepoint>(this);
      Dominik Inführ . resolved

      I think you can move this into the else branch of `has_shared_space_isolate()`. When we set up the shared space isolate, we can also allocate GlobalSafepoint.

      Thomas Lively

      The follow-on CL will have to move this out of the `v8_flags.shared_heap` check entirely, so I think keeping it somewhat separated here is useful.

      Jakob Kummerow

      Marking as resolved so we can land this.

      Line 400, Patchset 1: shared_space_isolate_ = nullptr;
      Dominik Inführ . resolved

      Nit: We could drop GlobalSafepoint here when dropping the shared space isolate. This mirrors AddIsolate() which sets up GlobalSafepoint when the shared space isolate is added. That said, this shouldn't affect Chrome where the main/shared-space isolate never goes away. There may be a few tests that trigger this code path though.

      Thomas Lively

      Tying the lifetime of the GlobalSafepoint to the the lifetime of the shared space isolate is contrary to the goal of making it possible to have a GlobalSafepoint without a shared heap, i.e. without a shared space isolate.

      Jakob Kummerow

      Marking as resolved so we can land this.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Thomas Lively
      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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
        Gerrit-Change-Number: 7966118
        Gerrit-PatchSet: 4
        Gerrit-Owner: Thomas Lively <tli...@google.com>
        Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
        Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
        Gerrit-Reviewer: Thomas Lively <tli...@google.com>
        Gerrit-CC: Hannes Payer <hpa...@chromium.org>
        Gerrit-Attention: Thomas Lively <tli...@google.com>
        Gerrit-Comment-Date: Wed, 01 Jul 2026 13:49:45 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Thomas Lively <tli...@google.com>
        Comment-In-Reply-To: Dominik Inführ <dinf...@chromium.org>
        satisfied_requirement
        open
        diffy

        v8-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

        unread,
        Jul 1, 2026, 9:52:30 AM (16 hours ago) Jul 1
        to Thomas Lively, Jakob Kummerow, Dominik Inführ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com

        v8-s...@luci-project-accounts.iam.gserviceaccount.com submitted the change

        Change information

        Commit message:
        [execution, heap] Move GlobalSafepoint to IsolateGroup

        In preparation for an experiment in which we will enable global
        safepoints without the shared heap, refactor the global safepoint
        infrastructure to be associated with an IsolateGroup rather than the
        IsolateGroup's shared heap isolate. A follow-on change will introduce a
        new feature flag for enabling global safepoints without the shared heap.
        Bug: 525559731
        Change-Id: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
        Reviewed-by: Jakob Kummerow <jkum...@chromium.org>
        Auto-Submit: Thomas Lively <tli...@google.com>
        Commit-Queue: Jakob Kummerow <jkum...@chromium.org>
        Reviewed-by: Dominik Inführ <dinf...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#108365}
        Files:
        • M src/execution/isolate.cc
        • M src/execution/isolate.h
        • M src/heap/safepoint.cc
        • M src/heap/safepoint.h
        • M src/init/isolate-group.cc
        • M src/init/isolate-group.h
        Change size: M
        Delta: 6 files changed, 43 insertions(+), 35 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Dominik Inführ, +1 by Jakob Kummerow
        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: Ic2241132b2a88e1d44ffab5de4c04d205e9bad25
        Gerrit-Change-Number: 7966118
        Gerrit-PatchSet: 5
        Gerrit-Owner: Thomas Lively <tli...@google.com>
        Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
        Gerrit-Reviewer: Jakob Kummerow <jkum...@chromium.org>
        Gerrit-Reviewer: Thomas Lively <tli...@google.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages