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

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

    XMLWordPrintable

    Details

      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:
              adev ANUPAM DEV
              Reporter:
              tongwan Andrew Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: