On Mon, 6 Apr 2026 17:18:18 GMT, Frederic Parain <[email protected]> wrote:

> Fix a bug in the computation of layouts of abstract value classes inheriting 
> fields. There was a missing case in the computation of the starting point for 
> the insertion of new fields. The FieldLayoutAnalyzer has been extended to 
> always verify that the alignment of the first field is compatible with the 
> alignment constraint of the payload. No new test was necessary, the new 
> verification in the FieldLayoutAnalyzer is sufficient to detect the issue 
> when running the ValueRandomLayoutTest test.
> 
> Testing in progress (tier1-4).
> 
> Thanks.
> 
> Fred

This pull request has now been integrated.

Changeset: 2588fe3b
Author:    Frederic Parain <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/2588fe3b10c45d4d35afca34f5701bbb10d9d4e1
Stats:     15 lines in 2 files changed: 14 ins; 0 del; 1 mod

8381679: [lworld] Invalid layout in abstract value classes inheriting fields

Reviewed-by: iwalulya, phubner

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

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

Reply via email to