Home
last modified time | relevance | path

Searched refs:adder (Results 1 – 17 of 17) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMap8Test.java328 LongAdder adder = new LongAdder(); in testKeySetSpliterator() local
335 sp.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator()
336 long v = adder.sumThenReset(); in testKeySetSpliterator()
337 sp2.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator()
338 long v2 = adder.sum(); in testKeySetSpliterator()
588 LongAdder adder = new LongAdder(); in testForEachKeySequentially() local
590 m.forEachKey(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachKeySequentially()
591 assertEquals(adder.sum(), SIZE * (SIZE - 1) / 2); in testForEachKeySequentially()
598 LongAdder adder = new LongAdder(); in testForEachValueSequentially() local
600 m.forEachValue(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachValueSequentially()
[all …]
DDoubleAdderTest.java153 final DoubleAdder adder; field in DoubleAdderTest.AdderTask
157 AdderTask(DoubleAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument
158 this.adder = adder; in AdderTask()
166 DoubleAdder a = adder; in run()
DLongAdderTest.java176 final LongAdder adder; field in LongAdderTest.AdderTask
180 AdderTask(LongAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument
181 this.adder = adder; in AdderTask()
189 LongAdder a = adder; in run()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentHashMap8Test.java353 LongAdder adder = new LongAdder(); in testKeySetSpliterator() local
360 sp.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator()
361 long v = adder.sumThenReset(); in testKeySetSpliterator()
362 sp2.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator()
363 long v2 = adder.sum(); in testKeySetSpliterator()
613 LongAdder adder = new LongAdder(); in testForEachKeySequentially() local
615 m.forEachKey(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachKeySequentially()
616 assertEquals(adder.sum(), SIZE * (SIZE - 1) / 2); in testForEachKeySequentially()
623 LongAdder adder = new LongAdder(); in testForEachValueSequentially() local
625 m.forEachValue(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachValueSequentially()
[all …]
DDoubleAdderTest.java176 final DoubleAdder adder; field in DoubleAdderTest.AdderTask
180 AdderTask(DoubleAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument
181 this.adder = adder; in AdderTask()
189 DoubleAdder a = adder; in run()
DLongAdderTest.java199 final LongAdder adder; field in LongAdderTest.AdderTask
203 AdderTask(LongAdder adder, CyclicBarrier barrier, int incs) { in AdderTask() argument
204 this.adder = adder; in AdderTask()
212 LongAdder a = adder; in run()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DLinkedTransferQueueTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 queue.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(queue.size() * (queue.size() + 1) / 2, adder.sum()); in testForEach()
DLinkedBlockingDequeTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 deque.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(deque.size() * (deque.size() + 1) / 2, adder.sum()); in testForEach()
DArrayBlockingQueueTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 queue.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(queue.size() * (queue.size() + 1) / 2, adder.sum()); in testForEach()
DPriorityBlockingQueueTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 queue.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(queue.size() * (queue.size() + 1) / 2, adder.sum()); in testForEach()
DConcurrentLinkedQueueTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 queue.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(queue.size() * (queue.size() + 1) / 2, adder.sum()); in testForEach()
DLinkedBlockingQueueTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 queue.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(queue.size() * (queue.size() + 1) / 2, adder.sum()); in testForEach()
DConcurrentLinkedDequeTest.java37 LongAdder adder = new LongAdder(); in testForEach() local
38 deque.forEach((Integer x) -> adder.add(x.longValue())); in testForEach()
40 assertEquals(deque.size() * (deque.size() + 1) / 2, adder.sum()); in testForEach()
DConcurrentHashMapTest.java363 LongAdder adder = new LongAdder(); in testKeySetViewForEach() local
364 set.forEach((Integer x) -> adder.add(x.longValue())); in testKeySetViewForEach()
366 assertEquals(set.size() * (set.size() + 1) / 2, adder.sum()); in testKeySetViewForEach()
/libcore/ojluni/src/test/java/util/Collection/
DBiggernYours.java118 static ColFrobber adder(final int i) { in adder() method in BiggernYours
127 {adder(1), adder(3), adder(2)};
143 for (ColFrobber adder : adders) {
145 adder.frob(c);
157 for (ColFrobber adder : adders) {
159 adder.frob(s);
/libcore/ojluni/src/test/java/lang/invoke/
DFoldTest.java99 static int adder(int a, int b, int c) { in adder() method in FoldTest.Fold
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java343 private transient LongAdder adder; field in ConcurrentSkipListMap
439 do {} while ((a = adder) == null && in addCount()
449 do {} while ((a = adder) == null && in getAdderCount()
1133 clone.adder = null; in clone()