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

factor duplicated assembly code for general subclass check (for 6655638)

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: