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

JNI ids must be reimplemented to support JVMTI obsolete ids, increase efficiency

XMLWordPrintable

    • beta
    • generic
    • generic

      The current implementation of JNI ids (jmethodID and jfieldID) is

      * very inefficient - particularly in returning jmethodID from methodOop,
      which involves multiple sequential searchs
      * kludgy - separate implementations for methods, instance fields, and
      static fields - none encapsulated
      * does not support obsolete methods (methods which have been
      non equivalently redefined with JVMTI RedefineClasses)

      The first and last problem require this to be fixed in Tiger as part of the
      JVMTI implementation.

      The new implementation replaces an algorithm which is linear in the number
      of methods and in the number of ids in the class with one that constant
      time. It supports true obsolete methods and has a single encapsulated
      implementation.

      ###@###.### 2003-04-25

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: