Avoid repeated SystemDictionaryShared::should_be_excluded calls

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: None
    • Component/s: hotspot
    • b24

      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

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

              Created:
              Updated:
              Resolved: