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

Avoid repeated SystemDictionaryShared::should_be_excluded calls

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      SystemDictionaryShared::should_be_excluded is called during CDS dump time to see if a class should be excluded from the archive. This function calls itself to check super types. As a result, some classes many be checked more than once.

      The repeated calls slows down dumping. Also, If a class is excluded, we will see multiple warning messages like this, which is too verbose and confusing.

      Skipping org/eclipse/osgi/util/NLS: Signed JAR
      Skipping org/eclipse/osgi/util/NLS: Signed JAR
      Skipping org/eclipse/osgi/util/NLS: Signed JAR
      Skipping org/eclipse/osgi/util/NLS: Signed JAR

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: