Commit df88ca6f by Bryce McKinlay Committed by Bryce McKinlay

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
parent 36f09faa
2002-04-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/util/IdentityHashMap.java (put): Set new threshold correctly
when resizing table.
2002-04-01 Mark Wielaard <mark@klomp.org>
* java/util/BitSet.java (BitSet(int)): if nbits < 0 throw
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment