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

(reflect) inefficient methods in java.lang.Class due to non-cached natives

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs

      The follwing methods in Class are native. Given the high overhead of calling
      a native method, they should either be rewritten to cache their results, or
      they should be intrinsified by the VM.

      Class.isInterface()
      Class.isArray()
      Class.isPrimitive()
      Class.getSuperclass()
      Class.getInterfaces()
      Class.getComponentType()
      Class.getModifiers()
      Class.getSigners()
      Class.getDeclaringClass()

            Unassigned Unassigned
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: