544 |
|
"DoubleAdderTest", |
545 |
|
"ForkJoinPool8Test", |
546 |
|
"ForkJoinTask8Test", |
547 |
+ |
"HashMapTest", |
548 |
|
"LinkedBlockingDeque8Test", |
549 |
|
"LinkedBlockingQueue8Test", |
550 |
|
"LongAccumulatorTest", |
1914 |
|
Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current()); |
1915 |
|
} |
1916 |
|
|
1917 |
+ |
/** |
1918 |
+ |
* Returns the same String as would be returned by {@link |
1919 |
+ |
* Object#toString}, whether or not the given object's class |
1920 |
+ |
* overrides toString(). |
1921 |
+ |
* |
1922 |
+ |
* @see System#identityHashCode |
1923 |
+ |
*/ |
1924 |
+ |
static String identityString(Object x) { |
1925 |
+ |
return x.getClass().getName() |
1926 |
+ |
+ "@" + Integer.toHexString(System.identityHashCode(x)); |
1927 |
+ |
} |
1928 |
+ |
|
1929 |
|
// --- Shared assertions for Executor tests --- |
1930 |
|
|
1931 |
|
/** |