From 123377a30bb02d1cfd6683a8a7e802b73fbc196f Mon Sep 17 00:00:00 2001 From: bryce Date: Tue, 2 Apr 2002 13:55:14 +0000 Subject: * java/util/IdentityHashMap.java (put): Set new threshold correctly when resizing table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51751 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 e6cd8c6d249..4609f015f8d 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.2.3