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

Remove unnecessary InstanceKlass::casts

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      There are a number of places where WK_KLASS[Foo_klass] and SystemDictionary::Foo_klass() are cast to InstanceKlass* via InstanceKlass::cast, which is redundant since they already are InstanceKlass*.

      Examples:

      L2000: InstanceKlass::cast(WK_KLASS(Reference_klass))
      L2029: InstanceKlass::cast(ClassLoader_klass())

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: