equal
deleted
inserted
replaced
569 "CountedCompleter8Test", |
569 "CountedCompleter8Test", |
570 "DoubleAccumulatorTest", |
570 "DoubleAccumulatorTest", |
571 "DoubleAdderTest", |
571 "DoubleAdderTest", |
572 "ForkJoinPool8Test", |
572 "ForkJoinPool8Test", |
573 "ForkJoinTask8Test", |
573 "ForkJoinTask8Test", |
|
574 "HashMapTest", |
574 "LinkedBlockingDeque8Test", |
575 "LinkedBlockingDeque8Test", |
575 "LinkedBlockingQueue8Test", |
576 "LinkedBlockingQueue8Test", |
576 "LongAccumulatorTest", |
577 "LongAccumulatorTest", |
577 "LongAdderTest", |
578 "LongAdderTest", |
578 "SplittableRandomTest", |
579 "SplittableRandomTest", |
1938 |
1939 |
1939 static <T> void shuffle(T[] array) { |
1940 static <T> void shuffle(T[] array) { |
1940 Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current()); |
1941 Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current()); |
1941 } |
1942 } |
1942 |
1943 |
|
1944 /** |
|
1945 * Returns the same String as would be returned by {@link |
|
1946 * Object#toString}, whether or not the given object's class |
|
1947 * overrides toString(). |
|
1948 * |
|
1949 * @see System#identityHashCode |
|
1950 */ |
|
1951 static String identityString(Object x) { |
|
1952 return x.getClass().getName() |
|
1953 + "@" + Integer.toHexString(System.identityHashCode(x)); |
|
1954 } |
|
1955 |
1943 // --- Shared assertions for Executor tests --- |
1956 // --- Shared assertions for Executor tests --- |
1944 |
1957 |
1945 /** |
1958 /** |
1946 * Returns maximum number of tasks that can be submitted to given |
1959 * Returns maximum number of tasks that can be submitted to given |
1947 * pool (with bounded queue) before saturation (when submission |
1960 * pool (with bounded queue) before saturation (when submission |