JSR 292 method handle creation should not go through JNI

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: hs22, 7
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: