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

C2: Downcast receiver to target holder during inlining

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b25

      Description


      Support the following case:

      src/hotspot/share/opto/doCall.cpp:
          if (receiver_type == NULL || !receiver_type->higher_equal(mr_type)) {
            // Calling this method would include an implicit cast to its holder.
            // %%% Not yet implemented. Would throw minor asserts at present.
            // %%% The most common wins are already gained by +UseUniqueSubclasses.
            // To fix, put the higher_equal check at the call of this routine,
            // and add a CheckCastPP to the receiver.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vlivanov Vladimir Ivanov
              Reporter:
              vlivanov Vladimir Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: