United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6812831 factor duplicated assembly code for megamorphic invokeinterface (for 6655638)
JDK-6812831 : factor duplicated assembly code for megamorphic invokeinterface (for 6655638)

Details
Type:
Enhancement
Submit Date:
2009-03-04
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2009-03-18
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs15 (b03)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
The assembly code for megamorphic invokeinterface is duplicated (with minor variations) in vtableStubs and templateTable.  In order to control the code shape more directly, we will factor it into a new subroutine MacroAssembler::lookup_interface_method.

This will let us use the subroutine in a new places, such as code for a direct method handle to an interface method.

It will also provide a single point (per CPU) to add enhancements to interface invocation, such as for the interface injection project.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/9adddb8c0fc8
                                     
2009-03-07
SUGGESTED FIX

http://cr.openjdk.java.net/~jrose/6812831/
http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/9adddb8c0fc8
                                     
2009-03-08



Hardware and Software, Engineered to Work Together