Create a common test to check adequacy of initial size of static HashMap/ArrayList fields

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b68

        Some exaples:

        java.base/share/classes/sun/invoke/anon/ConstantPoolPatch.java:
        CONSTANT_VALUE_CLASS_TAG has default capacity, which is bigger than necessary.

        src/java.base/share/classes/sun/security/ssl/ExtensionType.java
        knownExtensions = new ArrayList<ExtensionType>(9); // should be 13

        The already existent test should be rewritten with the use of this common part.
        test/java/lang/Character/UnicodeBlock/NonOptimalMapSize.java

              Assignee:
              Ivan Gerasimov
              Reporter:
              Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: