JDK-6813212 : factor duplicated assembly code for general subclass check (for 6655638)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-03-04
  • Updated: 2010-04-02
  • Resolved: 2009-04-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u18Fixed 7Fixed hs15Fixed
Related Reports
Relates :  
The assembly code for the general subclass check is duplicated (with minor variations) in interp_masm, stubGenerator, and c1_LIRAssembler.  In order to control the code shape more directly, we will factor it into a new subroutine MacroAssembler::check_klass_subtype.

This will let us use the subroutine in a new places, such as code for a direct method handle which adapts to a wider incoming argument type.

It will also reduce the number of modifications required to add enhancements to subtype checking, such as for the interface injection project.

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/c517646eef23

SUGGESTED FIX http://cr.openjdk.java.net/~jrose/6813212/