RFR: 8350892: [JVMCI] Align ResolvedJavaType.getInstanceFields with Class.getDeclaredFields
Tobias Hartmann
thartmann at openjdk.org
Fri Mar 21 12:59:09 UTC 2025
On Fri, 28 Feb 2025 23:46:54 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> The current order of fields returned by `ResolvedJavaType.getInstanceFields` is a) not well specified and b) different than the order of fields used almost everywhere else in HotSpot. This PR aligns the order of `getInstanceFields` with `Class.getDeclaredFields()`.
>
> It also makes `ciInstanceKlass::_nonstatic_fields` use the same order which unifies how escape analysis and deoptimization treats fields across C2 and JVMCI.
Nice cleanup, CI changes look good to me.
-------------
Marked as reviewed by thartmann (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/23849#pullrequestreview-2705854715
More information about the hotspot-dev
mailing list