Some use of Klass* should be replaced by InstanceKlass*

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: 12
    • Component/s: hotspot
    • b06

      Some HotSpot APIs use Klass*, even though it's clear that only InstanceKlass* can be used. Examples:

      Klass* SystemDictionary::resolve_instance_class_or_null(Symbol* class_name, Handle class_loader, Handle protection_domain, TRAPS);

      Array<Klass*>* InstanceKlass::local_interfaces();

      This has led to unnecessary type casting in the code. We should replace the Klass* with InstanceKlass*.

            Assignee:
            Ioi Lam
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: