mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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
This commit is contained in:
committed by
Bryce McKinlay
parent
36f09faa05
commit
df88ca6f49
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user