[lworld] RFR: 8355076: [lworld] Incorrect declared_nonstatic_fields computation

Quan Anh Mai qamai at openjdk.org
Sat Apr 19 18:44:04 UTC 2025


Hi,

This patch fixes the computation of declared_nonstatic_fields if the super class contains flat fields. Note that due to [JDK-8354322](https://bugs.openjdk.org/browse/JDK-8354322) such cases are not present at the moment.

Please kindly review, thanks a lot.

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

Commit messages:
 - move declared_nonstatic_fields to ciInstanceKlass

Changes: https://git.openjdk.org/valhalla/pull/1438/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1438&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8355076
  Stats: 246 lines in 4 files changed: 92 ins; 89 del; 65 mod
  Patch: https://git.openjdk.org/valhalla/pull/1438.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1438/head:pull/1438

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


More information about the valhalla-dev mailing list