diff --git a/agrona/src/main/java/org/agrona/collections/Int2IntCounterMap.java b/agrona/src/main/java/org/agrona/collections/Int2IntCounterMap.java index 3f62f017a..1cc62eb07 100644 --- a/agrona/src/main/java/org/agrona/collections/Int2IntCounterMap.java +++ b/agrona/src/main/java/org/agrona/collections/Int2IntCounterMap.java @@ -100,7 +100,7 @@ public float loadFactor() */ @DoNotSub public int capacity() { - return entries.length >> 2; + return entries.length >> 1; } /** diff --git a/agrona/src/main/java/org/agrona/collections/Int2IntHashMap.java b/agrona/src/main/java/org/agrona/collections/Int2IntHashMap.java index 82843b5c0..c19ecead3 100644 --- a/agrona/src/main/java/org/agrona/collections/Int2IntHashMap.java +++ b/agrona/src/main/java/org/agrona/collections/Int2IntHashMap.java @@ -105,7 +105,7 @@ public float loadFactor() */ @DoNotSub public int capacity() { - return entries.length >> 2; + return entries.length >> 1; } /** diff --git a/agrona/src/main/java/org/agrona/collections/Object2ObjectHashMap.java b/agrona/src/main/java/org/agrona/collections/Object2ObjectHashMap.java index 3f4c90688..b010945f3 100644 --- a/agrona/src/main/java/org/agrona/collections/Object2ObjectHashMap.java +++ b/agrona/src/main/java/org/agrona/collections/Object2ObjectHashMap.java @@ -95,7 +95,7 @@ public int resizeThreshold() */ public int capacity() { - return entries.length >> 2; + return entries.length >> 1; } /**