[cppgc] Release virtual memory in ReleasePooledPages [v8/v8 : main]

0 views
Skip to first unread message

Michael Lippautz (Gerrit)

unread,
6:35 AM (3 hours ago) 6:35 AM
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 added 1 comment

File src/heap/cppgc/page-memory.cc
Line 171, Patchset 3 (Parent): ASAN_UNPOISON_MEMORY_REGION(base, size);
Michael Lippautz . unresolved

Are we loosing any poisoning here? Or I guess we depend on poisoning from the BPA?

Open in Gerrit

Related details

Attention is currently required from:
  • Anton Bikineev
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: I0645a9d4467b28c9ead0b5acf089759d93316160
Gerrit-Change-Number: 7600444
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, 24 Feb 2026 11:35:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Anton Bikineev (Gerrit)

unread,
6:51 AM (2 hours ago) 6:51 AM
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/page-memory.cc
Line 171, Patchset 3 (Parent): ASAN_UNPOISON_MEMORY_REGION(base, size);
Michael Lippautz . resolved

Are we loosing any poisoning here? Or I guess we depend on poisoning from the BPA?

Anton Bikineev

No, ~PageMemoryRegion() calls FreeMemoryRegion() which unpoisons the region

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: I0645a9d4467b28c9ead0b5acf089759d93316160
    Gerrit-Change-Number: 7600444
    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: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Comment-Date: Tue, 24 Feb 2026 11:51:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michael Lippautz (Gerrit)

    unread,
    6:55 AM (2 hours ago) 6:55 AM
    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 2 comments

    Votes added by Michael Lippautz

    Code-Review+1

    2 comments

    Patchset-level comments
    File-level comment, Patchset 3 (Latest):
    Michael Lippautz . resolved

    lgtm, thanks

    Commit Message
    Line 16, Patchset 3 (Latest):
    Michael Lippautz . unresolved

    Lets add that this also releases address space on 32-bit systems.

    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: I0645a9d4467b28c9ead0b5acf089759d93316160
    Gerrit-Change-Number: 7600444
    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, 24 Feb 2026 11:55:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Anton Bikineev (Gerrit)

    unread,
    7:24 AM (2 hours ago) 7:24 AM
    to Michael Lippautz, AyeAye, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

    Anton Bikineev voted and added 2 comments

    Votes added by Anton Bikineev

    Commit-Queue+2

    2 comments

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

    Thanks.

    Commit Message
    Line 16, Patchset 3:
    Michael Lippautz . resolved

    Lets add that this also releases address space on 32-bit systems.

    Anton Bikineev

    Done

    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: I0645a9d4467b28c9ead0b5acf089759d93316160
      Gerrit-Change-Number: 7600444
      Gerrit-PatchSet: 4
      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: Tue, 24 Feb 2026 12:24:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
      satisfied_requirement
      open
      diffy

      V8 LUCI CQ (Gerrit)

      unread,
      7:26 AM (2 hours ago) 7:26 AM
      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

      Unreviewed changes

      3 is the latest approved patch-set.
      No files were changed between the latest approved patch-set and the submitted one.

      Change information

      Commit message:
      [cppgc] Release virtual memory in ReleasePooledPages

      The page pool used to only decommit pages but keep the virtual memory
      reservation. This change ensures that virtual memory is released back
      to the allocator (e.g. the BoundedPageAllocator in the cage) when
      ReleasePooledPages() is called. For non-caged configurations (e.g.
      32-bit) this releases the virtual memory and as such mitigates OOMs.

      This also simplifies NormalPageMemoryPool by removing the unused
      is_decommitted and is_discarded flags.
      Change-Id: I0645a9d4467b28c9ead0b5acf089759d93316160
      Reviewed-by: Michael Lippautz <mlip...@chromium.org>
      Commit-Queue: Anton Bikineev <biki...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#105411}
      Files:
      • M src/heap/cppgc/page-memory.cc
      • M src/heap/cppgc/page-memory.h
      • M test/unittests/heap/cppgc/page-memory-unittest.cc
      Change size: M
      Delta: 3 files changed, 29 insertions(+), 65 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: I0645a9d4467b28c9ead0b5acf089759d93316160
      Gerrit-Change-Number: 7600444
      Gerrit-PatchSet: 5
      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
      Reply all
      Reply to author
      Forward
      0 new messages