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

C2: Downcast receiver to target holder during inlining

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 17
    • hotspot
    • b25


      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.

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

              Created:
              Updated:
              Resolved: