diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-04-02 13:55:14 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-04-02 14:55:14 +0100 |
commit | df88ca6f494148e54eead96e67ca64a1e7533081 (patch) | |
tree | b27b91e0a148155db6dc939e6c05f9f532960933 /libjava/java | |
parent | 36f09faa0538826482116b505a9c80cde12c124f (diff) | |
download | gcc-df88ca6f494148e54eead96e67ca64a1e7533081.zip gcc-df88ca6f494148e54eead96e67ca64a1e7533081.tar.gz gcc-df88ca6f494148e54eead96e67ca64a1e7533081.tar.bz2 |
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
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/util/IdentityHashMap.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |