From df88ca6f494148e54eead96e67ca64a1e7533081 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Tue, 2 Apr 2002 13:55:14 +0000 Subject: IdentityHashMap.java (put): Set new threshold correctly when resizing table. * java/util/IdentityHashMap.java (put): Set new threshold correctly when resizing table. From-SVN: r51751 --- libjava/java/util/IdentityHashMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/util/IdentityHashMap.java') diff --git a/libjava/java/util/IdentityHashMap.java b/libjava/java/util/IdentityHashMap.java index e6cd8c6..4609f01 100644 --- a/libjava/java/util/IdentityHashMap.java +++ b/libjava/java/util/IdentityHashMap.java @@ -490,7 +490,7 @@ public class IdentityHashMap extends AbstractMap table = new Object[old.length * 2 + 2]; Arrays.fill(table, emptyslot); size = 0; - threshold = table.length / 4 * 3; + threshold = (table.length / 2) / 4 * 3; for (int i = old.length - 2; i >= 0; i -= 2) { -- cgit v1.1