- 
    Enhancement 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    25
- 
        b16
                    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 (apart from deoptimization). This issue exists to make ResolvedJavaType.getInstanceFields use an order that matches core reflection.
It should also try make C1 and C2 use the same order (i.e., in ciInstanceKlass::_nonstatic_fields) as that would unify how escape analysis and deoptimization treats fields across C2 and JVMCI.
It should also try make C1 and C2 use the same order (i.e., in ciInstanceKlass::_nonstatic_fields) as that would unify how escape analysis and deoptimization treats fields across C2 and JVMCI.
- links to
- 
                     Commit(master)
        openjdk/jdk/0cb110eb Commit(master)
        openjdk/jdk/0cb110eb
- 
                     Review(master)
        openjdk/jdk/23849 Review(master)
        openjdk/jdk/23849