1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import jsr166y.*; |
16 |
|
static int reps = 16; |
17 |
|
static final long maxValue = 1 << 12; |
18 |
|
|
19 |
< |
public static void main (String[] args) throws Exception { |
19 |
> |
public static void main(String[] args) throws Exception { |
20 |
|
int n = 1 << 20; |
21 |
|
Long[] a = new Long[n]; |
22 |
|
ParallelArray<Long> pa = ParallelArray.createUsingHandoff(a, fjpool); |
293 |
|
return u; |
294 |
|
} |
295 |
|
|
296 |
< |
static void checkSorted (ParallelArray<Long> pa) { |
296 |
> |
static void checkSorted(ParallelArray<Long> pa) { |
297 |
|
int n = pa.size(); |
298 |
|
for (int i = 0; i < n - 1; i++) { |
299 |
|
if (pa.get(i).compareTo(pa.get(i+1)) >= 0) { |