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

value of 'sizeCtl' in ConcurrentHashMap varies with the constructor called

    Details

      Description

      A DESCRIPTION OF THE PROBLEM :
      The following two statements:

      new ConcurrentHashMap(22,0.75f,1);
      new ConcurrentHashMap(22).

      The first construct method makes sizeCtl field value to 32, but the second one makes sizeCtl to 64.Both the two construct methods use the same parameter value. I think they should make the 'sizeCtl' value to be the same.


      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              martin Martin Buchholz
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: