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 |
|
* @test |
31 |
|
|
32 |
|
static void runTest(int maxThreads, int iters) throws Exception { |
33 |
|
print = true; |
34 |
< |
int k = 1; |
35 |
< |
for (int i = 1; i <= maxThreads;) { |
34 |
> |
for (int k = 1, i = 1; i <= maxThreads;) { |
35 |
|
System.out.println("Threads:" + i); |
36 |
|
oneTest(i, iters / i); |
37 |
|
if (i == k) { |