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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 9, 10
    • hotspot
    • generic
    • generic

      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.

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

              Created:
              Updated: