[fastapi] Use no_gc variants of Managed ptr getters [v8/v8 : main]

0 views
Skip to first unread message

Maksim Ivanov (Gerrit)

unread,
Apr 2, 2026, 9:55:55 AM (4 days ago) Apr 2
to Michael Lippautz, V8 LUCI CQ, dmercadi...@chromium.org, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Maksim Ivanov added 2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Maksim Ivanov . resolved

PTAL; thanks!

File src/objects/templates.cc
Line 182, Patchset 1 (Latest): i::DisallowGarbageCollection no_gc;
Maksim Ivanov . resolved

IIUC the `DisallowGarbageCollection` is a stronger guarantee and is more suitable here, since if executed on the background thread we want to disallow entering safepoints (allowing the GC to make the raw pointer invalid while we're copying from it).

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: Ibfeb36c1becb1313f7b42f06b33a979e043b78c7
Gerrit-Change-Number: 7725983
Gerrit-PatchSet: 1
Gerrit-Owner: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Apr 2026 13:55:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Michael Lippautz (Gerrit)

unread,
Apr 2, 2026, 9:58:26 AM (4 days ago) Apr 2
to Maksim Ivanov, V8 LUCI CQ, dmercadi...@chromium.org, v8-re...@googlegroups.com
Attention needed from Maksim Ivanov

Michael Lippautz voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Maksim Ivanov
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: Ibfeb36c1becb1313f7b42f06b33a979e043b78c7
Gerrit-Change-Number: 7725983
Gerrit-PatchSet: 1
Gerrit-Owner: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Maksim Ivanov <em...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Apr 2026 13:58:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Maksim Ivanov (Gerrit)

unread,
Apr 2, 2026, 9:59:59 AM (4 days ago) Apr 2
to Michael Lippautz, V8 LUCI CQ, dmercadi...@chromium.org, v8-re...@googlegroups.com

Maksim Ivanov voted Commit-Queue+2

Commit-Queue+2
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: Ibfeb36c1becb1313f7b42f06b33a979e043b78c7
Gerrit-Change-Number: 7725983
Gerrit-PatchSet: 1
Gerrit-Owner: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Apr 2026 13:59:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

V8 LUCI CQ (Gerrit)

unread,
Apr 2, 2026, 10:25:08 AM (4 days ago) Apr 2
to Maksim Ivanov, Michael Lippautz, dmercadi...@chromium.org, v8-re...@googlegroups.com

V8 LUCI CQ submitted the change

Change information

Commit message:
[fastapi] Use no_gc variants of Managed ptr getters

Switch the code that reads Managed<CFunctionWithSignature> onto
the raw(no_gc) variant, to let the static analysis catch possible
misuses of the raw pointers.

The parameterless raw() getter is deprecated and will be removed in the
future.
Bug: 485286897
Change-Id: Ibfeb36c1becb1313f7b42f06b33a979e043b78c7
Reviewed-by: Michael Lippautz <mlip...@chromium.org>
Commit-Queue: Maksim Ivanov <em...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#106251}
Files:
  • M src/compiler/heap-refs.cc
  • M src/objects/templates.cc
Change size: S
Delta: 2 files changed, 7 insertions(+), 5 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: Ibfeb36c1becb1313f7b42f06b33a979e043b78c7
Gerrit-Change-Number: 7725983
Gerrit-PatchSet: 2
Gerrit-Owner: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Maksim Ivanov <em...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages