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

Add speculative type profiling for parameters of Class.cast() and Class.isInstance() methods

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Currently, by default, only jsr292 related methods have speculative type profiling for parameters, arguments, return.
      But Class.cast() and Class.isInstance() methods are used by jsr292 code very frequent.
      8054492 changes added instrinsic for Class.cast() and we had intrinsic for Class.isInstance().
      These intrinsics call gen_checkast() and gen_instanceof() which use speculative types from bytecode profiling.
      It could be useful to pass ciProfileData data generated from parameters types profiling to this methods when they are called from intrinsics.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                roland Roland Westrelin
                Reporter:
                kvn Vladimir Kozlov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: