提交 e57821b6 编写于 作者: P psandoz

8023463: Improvements to HashMap/LinkedHashMap use of bins/buckets and trees (red/black)

8012913: LinkedHashMap key/value/entry spliterators should report ORDERED
Reviewed-by: mduigou, forax, bchristi, alanb
Contributed-by: NDoug Lea &lt;dl@cs.oswego.edu&gt;, Paul Sandoz <paul.sandoz@oracle.com>
上级 a576565e
...@@ -50,9 +50,9 @@ import static java.util.Arrays.*; ...@@ -50,9 +50,9 @@ import static java.util.Arrays.*;
"java.util.HashMap$EntryIterator", "java.util.HashMap$EntryIterator",
"java.util.HashMap$KeyIterator", "java.util.HashMap$KeyIterator",
"java.util.HashMap$ValueIterator", "java.util.HashMap$ValueIterator",
"java.util.LinkedHashMap$EntryIterator", "java.util.LinkedHashMap$LinkedEntryIterator",
"java.util.LinkedHashMap$KeyIterator", "java.util.LinkedHashMap$LinkedKeyIterator",
"java.util.LinkedHashMap$ValueIterator"}) "java.util.LinkedHashMap$LinkedValueIterator"})
public class Probe { public class Probe {
public static void main (String... args) throws Throwable { public static void main (String... args) throws Throwable {
Classes classesAnnotation = (Probe.class).getAnnotation(Classes.class); Classes classesAnnotation = (Probe.class).getAnnotation(Classes.class);
......
...@@ -53,8 +53,6 @@ public class CheckRandomHashSeed { ...@@ -53,8 +53,6 @@ public class CheckRandomHashSeed {
throw new Error("Error in test setup: " + (expectRandom ? "" : "not " ) + "expecting random hashSeed, but " + PROP_NAME + " is " + (propSet ? "" : "not ") + "enabled"); throw new Error("Error in test setup: " + (expectRandom ? "" : "not " ) + "expecting random hashSeed, but " + PROP_NAME + " is " + (propSet ? "" : "not ") + "enabled");
} }
testMap(new HashMap());
testMap(new LinkedHashMap());
testMap(new WeakHashMap()); testMap(new WeakHashMap());
testMap(new Hashtable()); testMap(new Hashtable());
} }
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
* @test * @test
* @bug 8005698 * @bug 8005698
* @run main InPlaceOpsCollisions -shortrun * @run main InPlaceOpsCollisions -shortrun
* @run main/othervm -Djdk.map.randomseed=true InPlaceOpsCollisions -shortrun
* @summary Ensure overrides of in-place operations in Maps behave well with lots of collisions. * @summary Ensure overrides of in-place operations in Maps behave well with lots of collisions.
* @author Brent Christian * @author Brent Christian
*/ */
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册