RFR: 8366155: Serial: Obsolete PretenureSizeThreshold

Francesco Andreuzzi duke at openjdk.org
Mon Sep 1 09:20:42 UTC 2025


On Tue, 26 Aug 2025 11:44:35 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Remove obj-size checking before young/old-gen allocation -- an allocation succeeds iff there is enough free space.
> 
> This simplifies the allocation logic:
> 1. before attempting gc: `mem_allocate_work` does young-gen allocation then old-gen-no-expansion allocation
> 2. after gc (still inside gc safepoint): `satisfy_failed_allocation` does young-gen allocation old-gen-with-expansion allocation
> 
> Test: tier1-3

Marked as reviewed by fandreuz at github.com (no known OpenJDK username).

-------------

PR Review: https://git.openjdk.org/jdk/pull/26941#pullrequestreview-3172831747


More information about the hotspot-dev mailing list