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 |
|
public class FinalLongTest { |
8 |
|
static int npairs = 2; |
9 |
|
static int iters = 10000000; |
10 |
< |
static int LEN = 2; |
10 |
> |
static int LEN = 2; |
11 |
|
static final Long[] nums = new Long[LEN]; |
12 |
|
static volatile boolean done; |
13 |
|
static volatile long total; |
16 |
|
static Long n2 = new Long(23); |
17 |
|
static Long n3 = new Long(23); |
18 |
|
|
19 |
– |
|
19 |
|
public static void main(String[] args) { |
20 |
|
for (int i = 0; i < LEN; ++i) |
21 |
|
nums[i] = new Long(i+1); |