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

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

Commit messages:
 - Fix layout of abstract value classes with inherited fields

Changes: https://git.openjdk.org/valhalla/pull/2301/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2301&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8381679
  Stats: 15 lines in 2 files changed: 14 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/valhalla/pull/2301.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2301/head:pull/2301

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

Reply via email to