Remove unnecessary InstanceKlass::casts

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 14
    • Affects Version/s: None
    • Component/s: 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())

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

              Created:
              Updated:
              Resolved: