[heap] Ensure heap limit is above current size [v8/v8 : main]

1 view
Skip to first unread message

Etienne Pierre-Doray (Gerrit)

unread,
Feb 26, 2026, 3:45:16 PMFeb 26
to Dominik Inführ, Michael Lippautz, chrom...@appspot.gserviceaccount.com, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ

Etienne Pierre-Doray added 1 comment

Patchset-level comments
File-level comment, Patchset 31 (Latest):
Etienne Pierre-Doray . resolved

PTAL

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 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: If26af2c8b66e378db29eda62ccab1677a30c87ee
Gerrit-Change-Number: 7494003
Gerrit-PatchSet: 31
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
Gerrit-Comment-Date: Thu, 26 Feb 2026 20:45:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

chromeperf@appspot.gserviceaccount.com (Gerrit)

unread,
Mar 4, 2026, 10:16:39 AMMar 4
to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Etienne Pierre-Doray

Message from chrom...@appspot.gserviceaccount.com

📍 Job mac-m1_mini_2020-perf/speedometer3 complete.

  • Editor-CodeMirror: base median = 20.484999999776484 -> patched median = 20.560000000149014
  • NewsSite-Nuxt: base median = 64.74999999981374 -> patched median = 65.14499999843538
  • TodoMVC-JavaScript-ES5: base median = 44.530000000633294 -> patched median = 44.62000000011176
  • TodoMVC-WebComponents: base median = 17.04500000029802 -> patched median = 17.139999999292193


See results at: https://pinpoint-dot-chromeperf.appspot.com/job/109c28e7f10000

Open in Gerrit

Related details

Attention is currently required from:
  • Dominik Inführ
  • Etienne Pierre-Doray
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: If26af2c8b66e378db29eda62ccab1677a30c87ee
Gerrit-Change-Number: 7494003
Gerrit-PatchSet: 40
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
Gerrit-Comment-Date: Wed, 04 Mar 2026 15:16:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

chromeperf@appspot.gserviceaccount.com (Gerrit)

unread,
Mar 4, 2026, 10:18:26 AMMar 4
to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Etienne Pierre-Doray

Message from chrom...@appspot.gserviceaccount.com

📍 Job mac-m1_mini_2020-perf/jetstream2.crossbench complete.

  • stanford-crypto-pbkdf2: base median = 1243.2887518742516 -> patched median = 1242.2197154469584
  • typescript: base median = 41.858721393205094 -> patched median = 41.80884780655206


See results at: https://pinpoint-dot-chromeperf.appspot.com/job/17a641bff10000

Gerrit-Comment-Date: Wed, 04 Mar 2026 15:18:23 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

chromeperf@appspot.gserviceaccount.com (Gerrit)

unread,
Mar 4, 2026, 10:46:15 PMMar 4
to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Etienne Pierre-Doray

Message from chrom...@appspot.gserviceaccount.com

📍 Job mac-m1_mini_2020-perf/speedometer3 complete.

  • Editor-CodeMirror: base median = 20.539999999478457 -> patched median = 20.619999998807906
  • NewsSite-Nuxt: base median = 64.80999999903142 -> patched median = 65.00000000074506


See results at: https://pinpoint-dot-chromeperf.appspot.com/job/101724a4090000

Gerrit-Comment-Date: Thu, 05 Mar 2026 03:46:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Dominik Inführ (Gerrit)

unread,
Mar 9, 2026, 10:12:49 AMMar 9
to Etienne Pierre-Doray, Michael Lippautz, chrom...@appspot.gserviceaccount.com, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Etienne Pierre-Doray

Dominik Inführ added 2 comments

File src/heap/heap-controller.cc
Line 166, Patchset 42 (Latest): static constexpr size_t kMinimumAllocationLimitGrowingStep = 64 * MB;
Dominik Inführ . unresolved

(If we decided to keep this method as-is) Nit: Can we drop this method and just define the constant for GlobalMemoryTrait instead?

Line 177, Patchset 42 (Latest): return base::saturated_cast<size_t>(std::max(
Dominik Inführ . unresolved

Do I understand correctly that 64M is now our minimum allocation limit growing step? While I like the simplicity of it, it seems a bit high.

Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
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: If26af2c8b66e378db29eda62ccab1677a30c87ee
    Gerrit-Change-Number: 7494003
    Gerrit-PatchSet: 42
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Comment-Date: Mon, 09 Mar 2026 14:12:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Etienne Pierre-Doray (Gerrit)

    unread,
    Mar 9, 2026, 9:36:53 PMMar 9
    to Dominik Inführ, Michael Lippautz, chrom...@appspot.gserviceaccount.com, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ

    Etienne Pierre-Doray voted and added 3 comments

    Votes added by Etienne Pierre-Doray

    Commit-Queue+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 44 (Latest):
    Etienne Pierre-Doray . resolved

    PTAnL?

    File src/heap/heap-controller.cc
    Line 166, Patchset 42: static constexpr size_t kMinimumAllocationLimitGrowingStep = 64 * MB;
    Dominik Inführ . resolved

    (If we decided to keep this method as-is) Nit: Can we drop this method and just define the constant for GlobalMemoryTrait instead?

    Etienne Pierre-Doray

    Done
    The V8HeapTrait counterpart could do the same in the follow-up

    Line 177, Patchset 42: return base::saturated_cast<size_t>(std::max(
    Dominik Inführ . unresolved

    Do I understand correctly that 64M is now our minimum allocation limit growing step? While I like the simplicity of it, it seems a bit high.

    Etienne Pierre-Doray

    Do I understand correctly that 64M is now our minimum allocation limit growing step?

    Yes

    While I like the simplicity of it, it seems a bit high.

    This includes external memory though (hence the 64M). I suppose if there's no external memory, we're effectively giving oilpan a larger min growing step which may be undesirable.
    Looking at ukm data, hitting the 8mb growing step is quite common.
    We could keep the min = 8mb (done in latest patchset), which should have no impact in most cases, at the cost of more frequent GCs when above 8Gb; this still serves the goal of unblocking external_memory_accounted_in_global_limit.

    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: If26af2c8b66e378db29eda62ccab1677a30c87ee
    Gerrit-Change-Number: 7494003
    Gerrit-PatchSet: 44
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 01:36:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Dominik Inführ <dinf...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    chromeperf@appspot.gserviceaccount.com (Gerrit)

    unread,
    Mar 9, 2026, 9:48:29 PMMar 9
    to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ and Etienne Pierre-Doray

    Message from chrom...@appspot.gserviceaccount.com

    😿 Job mac-m1_mini_2020-perf/jetstream2.crossbench failed.

    See results at: https://pinpoint-dot-chromeperf.appspot.com/job/17029400090000

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dominik Inführ
    • Etienne Pierre-Doray
    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: If26af2c8b66e378db29eda62ccab1677a30c87ee
    Gerrit-Change-Number: 7494003
    Gerrit-PatchSet: 44
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 01:48:26 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    chromeperf@appspot.gserviceaccount.com (Gerrit)

    unread,
    Mar 9, 2026, 9:49:04 PMMar 9
    to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ and Etienne Pierre-Doray

    Message from chrom...@appspot.gserviceaccount.com

    😿 Job mac-m1_mini_2020-perf/speedometer3 failed.

    See results at: https://pinpoint-dot-chromeperf.appspot.com/job/145928e7f10000

    Gerrit-Comment-Date: Tue, 10 Mar 2026 01:49:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    chromeperf@appspot.gserviceaccount.com (Gerrit)

    unread,
    Mar 9, 2026, 11:24:13 PMMar 9
    to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ and Etienne Pierre-Doray

    Message from chrom...@appspot.gserviceaccount.com

    📍 Job mac-m1_mini_2020-perf/speedometer3 complete.

    • Score: base median = 30.019634504624328 -> patched median = 30.00076848203188
    • TodoMVC-Backbone: base median = 26 -> patched median = 26.15999999977648
    • TodoMVC-JavaScript-ES5: base median = 44.77999999970198 -> patched median = 45.09499999955297
    • TodoMVC-JavaScript-ES6-Webpack-Complex-DOM: base median = 38.74999999962747 -> patched median = 39.03500000163913
    • TodoMVC-Svelte-Complex-DOM: base median = 11.325 -> patched median = 11.370000001043081


    See results at: https://pinpoint-dot-chromeperf.appspot.com/job/16afe186090000

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dominik Inführ
    • Etienne Pierre-Doray
    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: If26af2c8b66e378db29eda62ccab1677a30c87ee
    Gerrit-Change-Number: 7494003
    Gerrit-PatchSet: 46
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 03:24:10 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    chromeperf@appspot.gserviceaccount.com (Gerrit)

    unread,
    Mar 9, 2026, 11:24:36 PMMar 9
    to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ and Etienne Pierre-Doray

    Message from chrom...@appspot.gserviceaccount.com

    📍 Job mac-m1_mini_2020-perf/jetstream2.crossbench complete.

    See results at: https://pinpoint-dot-chromeperf.appspot.com/job/1490811c090000

    Gerrit-Comment-Date: Tue, 10 Mar 2026 03:24:34 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Etienne Pierre-Doray (Gerrit)

    unread,
    Mar 10, 2026, 1:26:57 PMMar 10
    to Dominik Inführ, Michael Lippautz, chrom...@appspot.gserviceaccount.com, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
    Attention needed from Dominik Inführ

    Etienne Pierre-Doray added 1 comment

    File src/heap/heap-controller.cc
    Line 177, Patchset 42: return base::saturated_cast<size_t>(std::max(
    Dominik Inführ . resolved

    Do I understand correctly that 64M is now our minimum allocation limit growing step? While I like the simplicity of it, it seems a bit high.

    Etienne Pierre-Doray

    Do I understand correctly that 64M is now our minimum allocation limit growing step?

    Yes

    While I like the simplicity of it, it seems a bit high.

    This includes external memory though (hence the 64M). I suppose if there's no external memory, we're effectively giving oilpan a larger min growing step which may be undesirable.
    Looking at ukm data, hitting the 8mb growing step is quite common.
    We could keep the min = 8mb (done in latest patchset), which should have no impact in most cases, at the cost of more frequent GCs when above 8Gb; this still serves the goal of unblocking external_memory_accounted_in_global_limit.

    Etienne Pierre-Doray

    I realize that using 8Mb breaks Regress9701 again when enabling external_memory_accounted_in_global_limit.
    But then I also realize that Regress9701 only succeeds ToT because the test allocates 64000Kb, which is below 64Mb. Simply increasing the total size of allocations breaks the test:
    https://chromium-review.git.corp.google.com/c/v8/v8/+/7653295?tab=checks

    So to unblock external_memory_accounted_in_global_limit, I think we should just disable the test until I find a better solution, or a write a better test.

    AFAIU what we really might want is to ensure scavenger runs before full GC when allocating AB if that makes a meaningful difference (it doesn't really matter on an empty heap), but that's a bit out of scope.

    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 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: If26af2c8b66e378db29eda62ccab1677a30c87ee
      Gerrit-Change-Number: 7494003
      Gerrit-PatchSet: 46
      Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Comment-Date: Tue, 10 Mar 2026 17:26:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
      Comment-In-Reply-To: Dominik Inführ <dinf...@chromium.org>
      unsatisfied_requirement
      open
      diffy

      Dominik Inführ (Gerrit)

      unread,
      Mar 13, 2026, 9:39:16 AMMar 13
      to Etienne Pierre-Doray, Michael Lippautz, chrom...@appspot.gserviceaccount.com, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com
      Attention needed from Etienne Pierre-Doray

      Dominik Inführ voted and added 1 comment

      Votes added by Dominik Inführ

      Code-Review+1

      1 comment

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

      Thanks, LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Etienne Pierre-Doray
      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: If26af2c8b66e378db29eda62ccab1677a30c87ee
      Gerrit-Change-Number: 7494003
      Gerrit-PatchSet: 47
      Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Comment-Date: Fri, 13 Mar 2026 13:39:12 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Etienne Pierre-Doray (Gerrit)

      unread,
      Mar 13, 2026, 9:46:30 AMMar 13
      to Dominik Inführ, Michael Lippautz, chrom...@appspot.gserviceaccount.com, V8 LUCI CQ, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com

      Etienne Pierre-Doray 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: If26af2c8b66e378db29eda62ccab1677a30c87ee
      Gerrit-Change-Number: 7494003
      Gerrit-PatchSet: 47
      Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
      Gerrit-Comment-Date: Fri, 13 Mar 2026 13:46:26 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      V8 LUCI CQ (Gerrit)

      unread,
      Mar 13, 2026, 10:40:37 AMMar 13
      to Etienne Pierre-Doray, Dominik Inführ, Michael Lippautz, chrom...@appspot.gserviceaccount.com, Hannes Payer, mlippau...@chromium.org, v8-re...@googlegroups.com

      V8 LUCI CQ submitted the change

      Change information

      Commit message:
      [heap] Ensure heap limit is above current size

      The assumption that allocation_limit < max_size isn't always true.
      This won't hold if current size > max_size.
      When this happens for old generation limit, we'll eventually crash, but that's not the case for global limit.

      This CL makes sure that BoundAllocationLimit returns a value above
      current_size for global limit, to avoid repeated GCs.
      A minimum step of 8Mb is chosen, which match the existing min growing
      step;
      this follows a similar behavior of allowing a minimum amount of growth
      before the next GC (but this is only relevant when above max
      global size).
      Bug: 361124432
      Change-Id: If26af2c8b66e378db29eda62ccab1677a30c87ee
      Reviewed-by: Dominik Inführ <dinf...@chromium.org>
      Commit-Queue: Etienne Pierre-Doray <etie...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#105787}
      Files:
      • M src/heap/heap-controller.cc
      • M src/heap/heap-controller.h
      • M test/cctest/heap/test-heap.cc
      • M test/mjsunit/mjsunit.status
      • M test/unittests/heap/heap-controller-unittest.cc
      Change size: M
      Delta: 5 files changed, 75 insertions(+), 83 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Dominik Inführ
      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: If26af2c8b66e378db29eda62ccab1677a30c87ee
      Gerrit-Change-Number: 7494003
      Gerrit-PatchSet: 48
      Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
      Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-CC: Hannes Payer <hpa...@chromium.org>
      Gerrit-CC: Michael Lippautz <mlip...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages