Home
last modified time | relevance | path

Searched refs:incs (Results 1 – 8 of 8) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DDoubleAccumulatorTest.java125 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()
DLongAccumulatorTest.java125 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()
DDoubleAdderTest.java137 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()
DLongAdderTest.java160 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/
DLongAccumulatorTest.java148 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()
DDoubleAdderTest.java160 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()
DDoubleAccumulatorTest.java148 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()
DLongAdderTest.java183 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()