-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
None
-
x86
-
linux
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
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
- relates to
-
JDK-8202422 value of 'sizeCtl' in ConcurrentHashMap varies with the constructor called
-
- Resolved
-