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

Remove NULL check in CDSProtectionDomain::init_security_info()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b06

      The following NULL check is unnecessary. This function is called only in two places, which always pass in a non-NULL ik parameter.

      https://github.com/openjdk/jdk/blob/77c3bbf105403089fec69d51406fe3e6f562271f/src/hotspot/share/cds/cdsProtectionDomain.cpp#L52

      Handle CDSProtectionDomain::init_security_info(Handle class_loader, InstanceKlass* ik, PackageEntry* pkg_entry, TRAPS) {
        Handle pd;

        if (ik != NULL) { ...

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

              Created:
              Updated:
              Resolved: