Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350892

[JVMCI] Align ResolvedJavaType.getInstanceFields with Class.getDeclaredFields

XMLWordPrintable

    • 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.

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: