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

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs
    • None
    • b68

    Backports

      Description

        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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: