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

Tobias Hartmann thartmann at openjdk.org
Tue Apr 22 12:15:53 UTC 2025


On Sun, 20 Apr 2025 07:27:43 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> 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.
>
> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
> 
>   small adjustments

I just fixed something similar with https://github.com/openjdk/valhalla/pull/1428 / [JDK-8353195](https://bugs.openjdk.org/browse/JDK-8353195), see:
https://github.com/openjdk/valhalla/blob/b72d63c75ebac8ef52dfa96b093b02e208d4faa5/src/hotspot/share/ci/ciInstanceKlass.cpp#L530-L532

Isn't that sufficient?

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

PR Comment: https://git.openjdk.org/valhalla/pull/1438#issuecomment-2821136587


More information about the valhalla-dev mailing list