United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6939203 JSR 292 needs method handle constants
JDK-6939203 : JSR 292 needs method handle constants

Details
Type:
Bug
Submit Date:
2010-03-30
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs19 (b04)

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
In order to compile constant references to method handles and method types, the constant pool structure needs to be able to represent method handle references, and the ldc instruction updated (as it was for Class constants).

This feature completes the role of method handle as a lightweight but dynamic access point to any bytecode operation.  Without the ability to perform 'ldc', building a handle to a proposed bytecode level member access is 1-2 orders of magnitude more expensive, requiring a reflective lookup.

For a draft specification, see the package information in the JSR 292 javadoc.  It is posted here for review:
  http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/136b78722a08
                                     
2010-06-10



Hardware and Software, Engineered to Work Together