cppgc: Mitigate Oilpan VA exhaustions [v8/v8 : main]

0 views
Skip to first unread message

Michael Lippautz (Gerrit)

unread,
Sep 23, 2025, 11:54:35 AM (3 days ago) Sep 23
to Anton Bikineev, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Anton Bikineev

Michael Lippautz voted and added 1 comment

Votes added by Michael Lippautz

Code-Review+1

1 comment

File src/heap/cppgc/caged-heap.cc
Line 68, Patchset 3 (Latest): // SystemPageSize, which may fail on system with .
Michael Lippautz . unresolved

There's some text missing :)

Open in Gerrit

Related details

Attention is currently required from:
  • Anton Bikineev
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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 3
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Anton Bikineev <biki...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Sep 2025 15:54:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Anton Bikineev (Gerrit)

unread,
Sep 24, 2025, 11:51:01 AM (2 days ago) Sep 24
to Michael Lippautz, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Anton Bikineev added 1 comment

File src/heap/cppgc/caged-heap.cc
Line 68, Patchset 3: // SystemPageSize, which may fail on system with .
Michael Lippautz . resolved

There's some text missing :)

Anton Bikineev

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
Submit Requirements:
  • requirement 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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 11
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@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: Wed, 24 Sep 2025 15:50:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Anton Bikineev (Gerrit)

unread,
Sep 24, 2025, 11:51:30 AM (2 days ago) Sep 24
to Michael Lippautz, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Anton Bikineev added 1 comment

Patchset-level comments
File-level comment, Patchset 11 (Latest):
Anton Bikineev . resolved

ptal, some stuff was updated

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
Submit Requirements:
  • requirement 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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 11
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@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: Wed, 24 Sep 2025 15:51:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Anton Bikineev (Gerrit)

unread,
Sep 24, 2025, 11:51:55 AM (2 days ago) Sep 24
to Michael Lippautz, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Michael Lippautz

Anton Bikineev added 1 comment

Patchset-level comments
Anton Bikineev . resolved

ptal, some stuff was updated

Anton Bikineev

To make it work for LSAN and Windows

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
Submit Requirements:
  • requirement 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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 11
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@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: Wed, 24 Sep 2025 15:51:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Anton Bikineev <biki...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Lippautz (Gerrit)

unread,
Sep 24, 2025, 12:06:58 PM (2 days ago) Sep 24
to Anton Bikineev, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Anton Bikineev

Michael Lippautz voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Anton Bikineev
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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 11
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Anton Bikineev <biki...@chromium.org>
Gerrit-Comment-Date: Wed, 24 Sep 2025 16:06:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Anton Bikineev (Gerrit)

unread,
Sep 25, 2025, 4:03:18 AM (yesterday) Sep 25
to Michael Lippautz, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

Anton Bikineev 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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 11
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Sep 2025 08:03:13 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

V8 LUCI CQ (Gerrit)

unread,
Sep 25, 2025, 4:04:45 AM (yesterday) Sep 25
to Anton Bikineev, Michael Lippautz, AyeAye, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

V8 LUCI CQ submitted the change

Change information

Commit message:
cppgc: Mitigate Oilpan VA exhaustions

Currently, Oilpan tries to overreserve the cage to make sure that the
LSB of the masked out pointer part is 1. It does it by allocating twice
the actual useful reservation size and twice the needed alignment
(16GB). This causes the platform allocator to mmap 64GB - kPageSize,
which may often fail on systems with low reservation limits
(VA_BITS==39), especially with the presence of the V8 Sandbox and
the out-of-line PA metadata.

The CL aims to mitigate it by using the opportunistic strategy:
1) first, relax the requirement of the alignment to be twice the needed
alignment. Instead, just pick the needed half. This will try to
mmap 48GB - kPageSize.
2) if this fails, try to allocate the actual useful reservation size
(16GB) for a few tries until the LSB of the masked out part is 1.
Bug: 444613347
Change-Id: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Commit-Queue: Anton Bikineev <biki...@chromium.org>
Reviewed-by: Michael Lippautz <mlip...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#102748}
Files:
  • M src/heap/cppgc/caged-heap.cc
  • M src/heap/cppgc/caged-heap.h
  • M src/heap/cppgc/virtual-memory.cc
  • M src/heap/cppgc/virtual-memory.h
Change size: M
Delta: 4 files changed, 121 insertions(+), 50 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: Idea29fd019d75e9904648bcdcdde8754b3475ac1
Gerrit-Change-Number: 6973464
Gerrit-PatchSet: 12
Gerrit-Owner: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Anton Bikineev <biki...@chromium.org>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
open
diffy
satisfied_requirement

Rezvan Mahdavi Hezaveh (Gerrit)

unread,
Sep 25, 2025, 5:57:51 PM (18 hours ago) Sep 25
to V8 LUCI CQ, Anton Bikineev, Michael Lippautz, AyeAye, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

Rezvan Mahdavi Hezaveh has created a revert of this change

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: revert
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages