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

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

XMLWordPrintable

        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


              martin Martin Buchholz
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: