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

Remove unnecessary InstanceKlass::casts

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • None
    • hotspot
    • b20

      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())

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

              Created:
              Updated:
              Resolved: