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

Make Class.getModifiers() non-native

XMLWordPrintable

    • b10


      C1 and C2 have intrinsics to get the field Klass::_modifier_flags for performance of Class.getModifiers() native method. Hotspot doesn't use or care about this field other than setting it once. The field could be moved to java.lang.Class and initialized once in Hotspot's create_mirror() and accessed as a getfield in Java code without needing intrinsics to recognize this call.

      I'm putting this on the compiler subcomponent but have a patch so far.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: