[jdk17u-dev] RFR: 8306444: Don't leak memory in PhaseChaitin::PhaseChaitin

jyma22 duke at openjdk.org
Thu Nov 20 17:55:36 UTC 2025


On Thu, 25 Sep 2025 20:33:21 GMT, jyma22 <duke at openjdk.org> wrote:

> Hi all,
> 
> This pull request contains a backport of commit [b2ccc97](https://github.com/openjdk/jdk/commit/b2ccc9731e3a183bc6f31480c7d12f110633ea2b) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by Johan Sjölen on Apr 24 2023 and was reviewed by Vladimir Kozlov and Roland Westrelin.
> 
> Testing: jtreg tier 1
> 
> Thanks!

Fix Request 17u

Backporting this patch optimizes PhaseChaitin's memory usage by freeing temporary sorting arrays early and eliminating the _blks array allocation by consolidating sorted blocks directly into the first bucket using memmove.
Path applies cleanly to 17u and doesn't require adjustments.
Included test passes. Ran tier1.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/3992#issuecomment-3559319068


More information about the jdk-updates-dev mailing list