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

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

    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:
      b16

      Description

      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!

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: