/libcore/jsr166-tests/src/test/java/jsr166/ |
D | DoubleAccumulatorTest.java | 125 final int incs = 1000000; in testAccumulateAndGetMT() local 131 pool.execute(new AccTask(a, phaser, incs)); in testAccumulateAndGetMT() 134 double expected = incs - 1; in testAccumulateAndGetMT() 143 final int incs; field in DoubleAccumulatorTest.AccTask 145 AccTask(DoubleAccumulator acc, Phaser phaser, int incs) { in AccTask() argument 148 this.incs = incs; in AccTask() 154 for (int i = 0; i < incs; ++i) in run()
|
D | LongAccumulatorTest.java | 125 final int incs = 1000000; in testAccumulateAndGetMT() local 131 pool.execute(new AccTask(a, phaser, incs)); in testAccumulateAndGetMT() 134 long expected = incs - 1; in testAccumulateAndGetMT() 143 final int incs; field in LongAccumulatorTest.AccTask 145 AccTask(LongAccumulator acc, Phaser phaser, int incs) { in AccTask() argument 148 this.incs = incs; in AccTask() 154 for (int i = 0; i < incs; ++i) in run()
|
D | DoubleAdderTest.java | 137 final int incs = 1000000; in testAddAndSumMT() local 143 pool.execute(new AdderTask(a, barrier, incs)); in testAddAndSumMT() 146 double total = (long)nthreads * incs; in testAddAndSumMT() 155 final int incs; field in DoubleAdderTest.AdderTask 157 AdderTask(DoubleAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument 160 this.incs = incs; in AdderTask() 167 for (int i = 0; i < incs; ++i) in run()
|
D | LongAdderTest.java | 160 final int incs = 1000000; in testAddAndSumMT() local 166 pool.execute(new AdderTask(a, barrier, incs)); in testAddAndSumMT() 169 long total = (long)nthreads * incs; in testAddAndSumMT() 178 final int incs; field in LongAdderTest.AdderTask 180 AdderTask(LongAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument 183 this.incs = incs; in AdderTask() 190 for (int i = 0; i < incs; ++i) in run()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | LongAccumulatorTest.java | 148 final int incs = 1000000; in testAccumulateAndGetMT() local 154 pool.execute(new AccTask(a, phaser, incs)); in testAccumulateAndGetMT() 157 long expected = incs - 1; in testAccumulateAndGetMT() 166 final int incs; field in LongAccumulatorTest.AccTask 168 AccTask(LongAccumulator acc, Phaser phaser, int incs) { in AccTask() argument 171 this.incs = incs; in AccTask() 177 for (int i = 0; i < incs; ++i) in run()
|
D | DoubleAdderTest.java | 160 final int incs = 1000000; in testAddAndSumMT() local 166 pool.execute(new AdderTask(a, barrier, incs)); in testAddAndSumMT() 169 double total = (long)nthreads * incs; in testAddAndSumMT() 178 final int incs; field in DoubleAdderTest.AdderTask 180 AdderTask(DoubleAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument 183 this.incs = incs; in AdderTask() 190 for (int i = 0; i < incs; ++i) in run()
|
D | DoubleAccumulatorTest.java | 148 final int incs = 1000000; in testAccumulateAndGetMT() local 154 pool.execute(new AccTask(a, phaser, incs)); in testAccumulateAndGetMT() 157 double expected = incs - 1; in testAccumulateAndGetMT() 166 final int incs; field in DoubleAccumulatorTest.AccTask 168 AccTask(DoubleAccumulator acc, Phaser phaser, int incs) { in AccTask() argument 171 this.incs = incs; in AccTask() 177 for (int i = 0; i < incs; ++i) in run()
|
D | LongAdderTest.java | 183 final int incs = 1000000; in testAddAndSumMT() local 189 pool.execute(new AdderTask(a, barrier, incs)); in testAddAndSumMT() 192 long total = (long)nthreads * incs; in testAddAndSumMT() 201 final int incs; field in LongAdderTest.AdderTask 203 AdderTask(LongAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument 206 this.incs = incs; in AdderTask() 213 for (int i = 0; i < incs; ++i) in run()
|