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

Remove null check in the beginning of SystemDictionary::load_shared_class()

XMLWordPrintable

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

      This check is unnecessary. SystemDictionary::load_shared_class() should not be called with a NULL class

      http://hg.openjdk.java.net/jdk/jdk/file/ee37c9b2eb61/src/hotspot/share/classfile/systemDictionary.cpp#l1272

      InstanceKlass* SystemDictionary::load_shared_class(InstanceKlass* ik,
                                                         Handle class_loader,
                                                         Handle protection_domain,
                                                         const ClassFileStream *cfs,
                                                         TRAPS) {

        if (ik != NULL) { // <<<< remove!

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: