On Mon, 27 Apr 2026 14:45:53 GMT, Frederic Parain <[email protected]> wrote:

> This patch adds a simple policy to put a limit on field flattening to prevent 
> instances from becoming too large. It is easy to generate very huge instances 
> with nested flat values, so huge that the JVM struggles to allocate its 
> internal data structure to handle such classes. The new policy allocates a 
> flattening budget to each class, and field flattening in this class stops 
> when the budget is exhausted. The limit can be tuned with a VM parameter.
> 
> Tested on Mach5 tier1-4
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 46aac163
Author:    Frederic Parain <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/46aac1637b9418557a46c25437c481c1ca79a05a
Stats:     179 lines in 7 files changed: 176 ins; 0 del; 3 mod

8383417: [lworld] Implement limitation to the size of instances due to 
flattening

Reviewed-by: aboldtch, phubner

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

PR: https://git.openjdk.org/valhalla/pull/2372

Reply via email to