--- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java Tue Oct 03 13:50:09 2017 -0700
+++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java Tue Oct 03 13:55:05 2017 -0700
@@ -571,6 +571,7 @@
"DoubleAdderTest",
"ForkJoinPool8Test",
"ForkJoinTask8Test",
+ "HashMapTest",
"LinkedBlockingDeque8Test",
"LinkedBlockingQueue8Test",
"LongAccumulatorTest",
@@ -1940,6 +1941,18 @@
Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current());
}
+ /**
+ * Returns the same String as would be returned by {@link
+ * Object#toString}, whether or not the given object's class
+ * overrides toString().
+ *
+ * @see System#identityHashCode
+ */
+ static String identityString(Object x) {
+ return x.getClass().getName()
+ + "@" + Integer.toHexString(System.identityHashCode(x));
+ }
+
// --- Shared assertions for Executor tests ---
/**