Home
last modified time | relevance | path

Searched refs:AtomicInteger (Results 1 – 25 of 91) sorted by relevance

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicIntegerTest.java11 import java.util.concurrent.atomic.AtomicInteger;
35 AtomicInteger ai = new AtomicInteger(1); in testConstructor()
43 AtomicInteger ai = new AtomicInteger(); in testConstructor2()
51 AtomicInteger ai = new AtomicInteger(1); in testGetSet()
63 AtomicInteger ai = new AtomicInteger(1); in testGetLazySet()
75 AtomicInteger ai = new AtomicInteger(1); in testCompareAndSet()
90 final AtomicInteger ai = new AtomicInteger(1); in testCompareAndSetInMultipleThreads()
109 AtomicInteger ai = new AtomicInteger(1); in testWeakCompareAndSet()
121 AtomicInteger ai = new AtomicInteger(1); in testGetAndSet()
131 AtomicInteger ai = new AtomicInteger(1); in testGetAndAdd()
[all …]
DThreadLocalRandom8Test.java10 import java.util.concurrent.atomic.AtomicInteger;
121 AtomicInteger fails = new AtomicInteger(0); in testBoundedInts()
140 AtomicInteger fails = new AtomicInteger(0); in testBoundedLongs()
159 AtomicInteger fails = new AtomicInteger(0); in testBoundedDoubles()
DAtomic8Test.java10 import java.util.concurrent.atomic.AtomicInteger;
116 AtomicInteger a = new AtomicInteger(1); in testIntGetAndUpdate()
127 AtomicInteger a = new AtomicInteger(1); in testIntUpdateAndGet()
138 AtomicInteger a = new AtomicInteger(1); in testIntGetAndAccumulate()
149 AtomicInteger a = new AtomicInteger(1); in testIntAccumulateAndGet()
503 () -> new AtomicInteger().getAndUpdate(null), in testGetAndUpdateNPE()
524 () -> new AtomicInteger().updateAndGet(null), in testUpdateAndGetNPE()
543 () -> new AtomicInteger().getAndAccumulate(1, null), in testGetAndAccumulateNPE()
562 () -> new AtomicInteger().accumulateAndGet(1, null), in testAccumulateAndGetNPE()
DFutureTaskTest.java27 import java.util.concurrent.atomic.AtomicInteger;
170 private final AtomicInteger runCount;
171 private final AtomicInteger doneCount = new AtomicInteger(0);
172 private final AtomicInteger runAndResetCount = new AtomicInteger(0);
173 private final AtomicInteger setCount = new AtomicInteger(0);
174 private final AtomicInteger setExceptionCount = new AtomicInteger(0);
185 this(runnable, result, new AtomicInteger(0)); in PublicFutureTask()
188 final AtomicInteger runCount) { in PublicFutureTask()
197 this(callable, new AtomicInteger(0)); in PublicFutureTask()
200 final AtomicInteger runCount) { in PublicFutureTask()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAtomicIntegerTest.java37 import java.util.concurrent.atomic.AtomicInteger;
58 AtomicInteger ai = new AtomicInteger(1); in testConstructor()
66 AtomicInteger ai = new AtomicInteger(); in testConstructor2()
74 AtomicInteger ai = new AtomicInteger(1); in testGetSet()
86 AtomicInteger ai = new AtomicInteger(1); in testGetLazySet()
98 AtomicInteger ai = new AtomicInteger(1); in testCompareAndSet()
113 final AtomicInteger ai = new AtomicInteger(1); in testCompareAndSetInMultipleThreads()
132 AtomicInteger ai = new AtomicInteger(1); in testWeakCompareAndSet()
144 AtomicInteger ai = new AtomicInteger(1); in testGetAndSet()
154 AtomicInteger ai = new AtomicInteger(1); in testGetAndAdd()
[all …]
DThreadLocalRandom8Test.java36 import java.util.concurrent.atomic.AtomicInteger;
144 AtomicInteger fails = new AtomicInteger(0); in testBoundedInts()
163 AtomicInteger fails = new AtomicInteger(0); in testBoundedLongs()
182 AtomicInteger fails = new AtomicInteger(0); in testBoundedDoubles()
DAtomic8Test.java36 import java.util.concurrent.atomic.AtomicInteger;
137 AtomicInteger a = new AtomicInteger(1); in testIntGetAndUpdate()
148 AtomicInteger a = new AtomicInteger(1); in testIntUpdateAndGet()
159 AtomicInteger a = new AtomicInteger(1); in testIntGetAndAccumulate()
170 AtomicInteger a = new AtomicInteger(1); in testIntAccumulateAndGet()
524 () -> new AtomicInteger().getAndUpdate(null), in testGetAndUpdateNPE()
542 () -> new AtomicInteger().updateAndGet(null), in testUpdateAndGetNPE()
561 () -> new AtomicInteger().getAndAccumulate(1, null), in testGetAndAccumulateNPE()
580 () -> new AtomicInteger().accumulateAndGet(1, null), in testAccumulateAndGetNPE()
DFutureTaskTest.java53 import java.util.concurrent.atomic.AtomicInteger;
193 private final AtomicInteger runCount;
194 private final AtomicInteger doneCount = new AtomicInteger(0);
195 private final AtomicInteger runAndResetCount = new AtomicInteger(0);
196 private final AtomicInteger setCount = new AtomicInteger(0);
197 private final AtomicInteger setExceptionCount = new AtomicInteger(0);
208 this(runnable, result, new AtomicInteger(0)); in PublicFutureTask()
211 final AtomicInteger runCount) { in PublicFutureTask()
220 this(callable, new AtomicInteger(0)); in PublicFutureTask()
223 final AtomicInteger runCount) { in PublicFutureTask()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAtomicIntegerTest.java22 import java.util.concurrent.atomic.AtomicInteger;
32 AtomicInteger val = new AtomicInteger(42); in testCompareAndExchange()
45 AtomicInteger val = new AtomicInteger(42); in testCompareAndExchangeAcquire()
58 AtomicInteger val = new AtomicInteger(42); in testCompareAndExchangeRelease()
71 AtomicInteger val = new AtomicInteger(42); in testGetAcquire()
81 AtomicInteger val = new AtomicInteger(42); in testGetOpaque()
91 AtomicInteger val = new AtomicInteger(42); in testGetPlain()
101 AtomicInteger val = new AtomicInteger(42); in testSetOpaque()
112 AtomicInteger val = new AtomicInteger(42); in testSetPlain()
123 AtomicInteger val = new AtomicInteger(42); in testSetRelease()
[all …]
DForkJoinPoolTest.java27 import java.util.concurrent.atomic.AtomicInteger;
40 final AtomicInteger result = new AtomicInteger(0); in testSubmit()
55 final AtomicInteger value = new AtomicInteger(0); in testGetRunningThreadCount()
DCountedCompleterTest.java24 import java.util.concurrent.atomic.AtomicInteger;
46 AtomicInteger ai = new AtomicInteger(0); in chooseOne()
190 AtomicInteger ai = new AtomicInteger(0); in testHelpComplete()
DForkJoinTaskTest.java27 import java.util.concurrent.atomic.AtomicInteger;
41 final AtomicInteger result = new AtomicInteger(0); in testAdaptToRunnableWithResult()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DFlatMapOpTest.java36 import java.util.concurrent.atomic.AtomicInteger;
84 AtomicInteger before = new AtomicInteger(); in testClose()
85 AtomicInteger onClose = new AtomicInteger(); in testClose()
107 AtomicInteger before = new AtomicInteger(); in testIntClose()
108 AtomicInteger onClose = new AtomicInteger(); in testIntClose()
117 AtomicInteger before = new AtomicInteger(); in testLongClose()
118 AtomicInteger onClose = new AtomicInteger(); in testLongClose()
127 AtomicInteger before = new AtomicInteger(); in testDoubleClose()
128 AtomicInteger onClose = new AtomicInteger(); in testDoubleClose()
156 AtomicInteger count = new AtomicInteger(); in testOpsShortCircuit()
[all …]
DCountTest.java46 import java.util.concurrent.atomic.AtomicInteger;
197 AtomicInteger ai = new AtomicInteger(); in checkStreamDoesNotConsumeElements()
206 AtomicInteger ai = new AtomicInteger(); in checkIntStreamDoesNotConsumeElements()
215 AtomicInteger ai = new AtomicInteger(); in checkLongStreamDoesNotConsumeElements()
224 AtomicInteger ai = new AtomicInteger(); in checkDoubleStreamDoesNotConsumeElements()
/libcore/benchmarks/src/benchmarks/regression/
DMutableIntBenchmark.java20 import java.util.concurrent.atomic.AtomicInteger;
47 AtomicInteger value = new AtomicInteger(); in ATOMIC()
51 value = new AtomicInteger(5); in ATOMIC()
/libcore/benchmarks/src/benchmarks/
DReferenceBenchmark.java23 import java.util.concurrent.atomic.AtomicInteger;
93 AtomicInteger count;
95 public FinalizableObject(AtomicInteger count) { in FinalizableObject()
109 AtomicInteger count = new AtomicInteger(0); in timeFinalization()
/libcore/ojluni/src/main/java/sun/net/
DResourceManager.java29 import java.util.concurrent.atomic.AtomicInteger;
53 private static final AtomicInteger numSockets;
66 numSockets = new AtomicInteger(0);
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java21 import java.util.concurrent.atomic.AtomicInteger;
135 AtomicInteger count = new AtomicInteger(); in testSystemRunFinalizationReturnsEvenIfQueueIsNonEmpty()
143 public void createChainedFinalizer(final AtomicInteger counter, final AtomicBoolean keepGoing) { in createChainedFinalizer()
/libcore/ojluni/src/test/java/util/Collections/
DSingletonIterator.java35 import java.util.concurrent.atomic.AtomicInteger;
55 AtomicInteger cnt = new AtomicInteger(0); in testForEachRemaining()
DEnumerationAsIterator.java43 import java.util.concurrent.atomic.AtomicInteger;
153 AtomicInteger ai = new AtomicInteger();
173 AtomicInteger ai = new AtomicInteger();
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTest.java22 import java.util.concurrent.atomic.AtomicInteger;
85 AtomicInteger sum = new AtomicInteger(); in testOfPrimitiveForEachRemaining()
DOptionalIntTest.java24 import java.util.concurrent.atomic.AtomicInteger;
53 final AtomicInteger reference = new AtomicInteger(); in testIfPresent()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/
DAtomicInteger.java41 public class AtomicInteger extends java.lang.Number implements java.io.Serializable { class
43 public AtomicInteger(int initialValue) { in AtomicInteger() method in AtomicInteger
47 public AtomicInteger() { in AtomicInteger() method in AtomicInteger
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicInteger.java55 public class AtomicInteger extends Number implements java.io.Serializable { class
70 VALUE = l.findVarHandle(AtomicInteger.class, "value", int.class);
84 public AtomicInteger(int initialValue) { in AtomicInteger() method in AtomicInteger
91 public AtomicInteger() { in AtomicInteger() method in AtomicInteger
/libcore/ojluni/src/test/java/util/Random/
DRandomTest.java27 import java.util.concurrent.atomic.AtomicInteger;
283 AtomicInteger fails = new AtomicInteger(0); in testBoundedInts()
303 AtomicInteger fails = new AtomicInteger(0); in testBoundedLongs()
323 AtomicInteger fails = new AtomicInteger(0); in testBoundedDoubles()

1234