/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMap8Test.java | 328 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 …]
|
D | DoubleAdderTest.java | 153 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()
|
D | LongAdderTest.java | 176 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/ |
D | ConcurrentHashMap8Test.java | 353 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 …]
|
D | DoubleAdderTest.java | 176 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()
|
D | LongAdderTest.java | 199 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/ |
D | LinkedTransferQueueTest.java | 37 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()
|
D | LinkedBlockingDequeTest.java | 37 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()
|
D | ArrayBlockingQueueTest.java | 37 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()
|
D | PriorityBlockingQueueTest.java | 37 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()
|
D | ConcurrentLinkedQueueTest.java | 37 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()
|
D | LinkedBlockingQueueTest.java | 37 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()
|
D | ConcurrentLinkedDequeTest.java | 37 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()
|
D | ConcurrentHashMapTest.java | 363 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/ |
D | BiggernYours.java | 118 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/ |
D | FoldTest.java | 99 static int adder(int a, int b, int c) { in adder() method in FoldTest.Fold
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentSkipListMap.java | 343 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()
|