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

JSR 292 method handle creation should not go through JNI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • hs22, 7
    • core-libs
    • b52
    • generic
    • generic
    • Not verified

        The Hotspot reference implementation for JSR 292 uses a conservative technique for constructing method handle nodes: It defers the low-level data structure initialization to native C++ code accessed via JNI.

        Now that the internal implementation schema for method handle nodes is better understood, we should move the data structure initialization code into trusted Java code.

        This will enable the dynamic compiler to make appropriate optimizations at points where method handles are created. This is important, for example, for the bindTo and asInstance operations, which closures are likely to use, and which need to be aggressively optimized.

              jrose John Rose
              jrose John Rose
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: