Integrated: 8366155: Serial: Obsolete PretenureSizeThreshold

Albert Mingkun Yang ayang at openjdk.org
Wed Sep 3 18:50:49 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

This pull request has now been integrated.

Changeset: 8d236615
Author:    Albert Mingkun Yang <ayang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8d236615b7db2bd5a2a59002b79e59cf4e6a308a
Stats:     86 lines in 7 files changed: 3 ins; 75 del; 8 mod

8366155: Serial: Obsolete PretenureSizeThreshold

Reviewed-by: tschatzl

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

PR: https://git.openjdk.org/jdk/pull/26941


More information about the hotspot-dev mailing list