Load libzip.so only if necessary

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: 15
    • Component/s: hotspot
    • b22

      HotSpot current loads libzip.so unconditionally.

      http://hg.openjdk.java.net/jdk/jdk/file/6411242023f9/src/hotspot/share/classfile/classLoader.cpp#l1521

      However, we need it only when:

      -Xbootclasspath is specified (potentially with a zip file in there)
      VerifySharedSpaces is enabled
      CDS archive has classes for custom class loaders
      AOT is enabled

            Assignee:
            Yumin Qi
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: