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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • hs15
    • Affects Version/s: 7
    • Component/s: hotspot
    • None
    • b04
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: