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

tryPresize use load-factor of 2/3, not the documented default of 3/4

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      A DESCRIPTION OF THE PROBLEM :
      the following code:
      private final void tryPresize(int size) {
              int c = (size >= (MAXIMUM_CAPACITY >>> 1)) ? MAXIMUM_CAPACITY :
                  tableSizeFor(size + (size >>> 1) + 1); //
              int sc;
      ......

      tableSizeFor(size + (size >>> 1) + 1); use load-factor of 2/3, not the documented default of 3/4.
      please refer another Bug: https://bugs.openjdk.java.net/browse/JDK-8202422

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tongwan Andrew Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: