RFR: 8350892: [JVMCI] Align ResolvedJavaType.getInstanceFields with Class.getDeclaredFields
    Doug Simon 
    dnsimon at openjdk.org
       
    Fri Mar 21 13:03:17 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.
Thanks for the reviews!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23849#issuecomment-2743295318
    
    
More information about the hotspot-dev
mailing list