Home
last modified time | relevance | path

Searched refs:AtomicReference (Results 1 – 20 of 20) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicReferenceTest.java11 import java.util.concurrent.atomic.AtomicReference;
31 AtomicReference ai = new AtomicReference(one); in testConstructor()
39 AtomicReference ai = new AtomicReference(); in testConstructor2()
47 AtomicReference ai = new AtomicReference(one); in testGetSet()
59 AtomicReference ai = new AtomicReference(one); in testGetLazySet()
71 AtomicReference ai = new AtomicReference(one); in testCompareAndSet()
86 final AtomicReference ai = new AtomicReference(one); in testCompareAndSetInMultipleThreads()
105 AtomicReference ai = new AtomicReference(one); in testWeakCompareAndSet()
117 AtomicReference ai = new AtomicReference(one); in testGetAndSet()
127 AtomicReference x = new AtomicReference(); in testSerialization()
[all …]
DAtomic8Test.java16 import java.util.concurrent.atomic.AtomicReference;
160 AtomicReference<Integer> a = new AtomicReference<Integer>(one); in testReferenceGetAndUpdate()
171 AtomicReference<Integer> a = new AtomicReference<Integer>(one); in testReferenceUpdateAndGet()
182 AtomicReference<Integer> a = new AtomicReference<Integer>(one); in testReferenceGetAndAccumulate()
193 AtomicReference<Integer> a = new AtomicReference<Integer>(one); in testReferenceAccumulateAndGet()
504 () -> new AtomicReference().getAndUpdate(null), in testGetAndUpdateNPE()
525 () -> new AtomicReference().updateAndGet(null), in testUpdateAndGetNPE()
544 () -> new AtomicReference().getAndAccumulate(one, null), in testGetAndAccumulateNPE()
563 () -> new AtomicReference().accumulateAndGet(one, null), in testAccumulateAndGetNPE()
DThreadLocalRandomTest.java11 import java.util.concurrent.atomic.AtomicReference;
315 final AtomicReference<ThreadLocalRandom> threadLocalRandom =
316 new AtomicReference<ThreadLocalRandom>();
DJSR166TestCase.java55 import java.util.concurrent.atomic.AtomicReference;
617 private final AtomicReference<Throwable> threadFailure
618 = new AtomicReference<Throwable>(null);
DCompletableFutureTest.java38 import java.util.concurrent.atomic.AtomicReference;
3350 AtomicReference<Throwable> r = new AtomicReference<Throwable>(); in testCompletedStage()
3428 AtomicReference<Throwable> r = new AtomicReference<Throwable>(); in testMinimalCompletionStage()
3445 AtomicReference<Throwable> r = new AtomicReference<Throwable>(); in testMinimalCompletionStage2()
3463 AtomicReference<Throwable> r = new AtomicReference<Throwable>(); in testFailedStage()
3835 AtomicReference<Throwable> firstFailure = new AtomicReference<>(null);
DCountedCompleterTest.java20 import java.util.concurrent.atomic.AtomicReference;
217 final AtomicReference<Object> rawResult = new AtomicReference<Object>(null);
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicReference.java20 public class AtomicReference<V> implements java.io.Serializable { class
29 (AtomicReference.class.getDeclaredField("value"));
42 public AtomicReference(V initialValue) { in AtomicReference() method in AtomicReference
49 public AtomicReference() { in AtomicReference() method in AtomicReference
/libcore/luni/src/test/java/libcore/java/util/
DOptionalTest.java24 import java.util.concurrent.atomic.AtomicReference;
77 final AtomicReference<String> reference = new AtomicReference<>(); in testIfPresent()
102 final AtomicReference<String> reference = new AtomicReference<>(); in testFilter()
116 final AtomicReference<String> reference = new AtomicReference<>(); in testMap()
137 final AtomicReference<String> reference = new AtomicReference<>(); in testFlatMap()
DOptionalDoubleTest.java26 import java.util.concurrent.atomic.AtomicReference;
55 final AtomicReference<Double> reference = new AtomicReference<>(); in testIfPresent()
/libcore/ojluni/src/main/java/java/util/stream/
DAbstractShortCircuitTask.java28 import java.util.concurrent.atomic.AtomicReference;
50 protected final AtomicReference<R> sharedResult;
71 sharedResult = new AtomicReference<>(null); in AbstractShortCircuitTask()
107 AtomicReference<R> sr = sharedResult; in compute()
/libcore/luni/src/main/java/java/util/concurrent/
DPhaser.java9 import java.util.concurrent.atomic.AtomicReference;
319 private final AtomicReference<QNode> evenQ;
320 private final AtomicReference<QNode> oddQ;
322 private AtomicReference<QNode> queueFor(int phase) { in queueFor()
534 this.evenQ = new AtomicReference<QNode>(); in Phaser()
535 this.oddQ = new AtomicReference<QNode>(); in Phaser()
942 AtomicReference<QNode> head = (phase & 1) == 0 ? evenQ : oddQ; in releaseWaiters()
963 AtomicReference<QNode> head = (phase & 1) == 0 ? evenQ : oddQ; in abortWait()
1025 AtomicReference<QNode> head = (phase & 1) == 0 ? evenQ : oddQ; in internalAwaitAdvance()
DConcurrentHashMap.java24 import java.util.concurrent.atomic.AtomicReference;
3735 searchFunction, new AtomicReference<U>()).invoke(); in search()
3902 searchFunction, new AtomicReference<U>()).invoke(); in searchKeys()
4089 searchFunction, new AtomicReference<U>()).invoke(); in searchValues()
4273 searchFunction, new AtomicReference<U>()).invoke(); in searchEntries()
5185 final AtomicReference<U> result;
5189 AtomicReference<U> result) { in SearchKeysTask()
5196 final AtomicReference<U> result; in compute()
5229 final AtomicReference<U> result;
5233 AtomicReference<U> result) { in SearchValuesTask()
[all …]
/libcore/luni/src/main/java/libcore/io/
DStreams.java27 import java.util.concurrent.atomic.AtomicReference;
30 private static AtomicReference<byte[]> skipBuffer = new AtomicReference<byte[]>();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DObservableTest.java23 import java.util.concurrent.atomic.AtomicReference;
242 final AtomicReference<Observable> updated = new AtomicReference<>(); in test_observableWithOverridenHasChanged()
DTimerTest.java28 import java.util.concurrent.atomic.AtomicReference;
968 final AtomicReference<Thread> threadRef = new AtomicReference<Thread>(); in testThrowingTaskKillsTimerThread()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java32 import java.util.concurrent.atomic.AtomicReference;
358 final AtomicReference<Throwable> failure = new AtomicReference<Throwable>();
DDatagramChannelTest.java38 import java.util.concurrent.atomic.AtomicReference;
2534 … final AtomicReference<Exception> killerThreadException = new AtomicReference<Exception>(null); in test_concurrentShutdown()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java42 import java.util.concurrent.atomic.AtomicReference;
469 final AtomicReference<Exception> killerThreadException = new AtomicReference<Exception>(null); in test_recvfrom_concurrentShutdown()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java68 import java.util.concurrent.atomic.AtomicReference;
2382 final AtomicReference<URI> uriReference = new AtomicReference<URI>();
2878 final AtomicReference<String> hostNameUsed = new AtomicReference<>(null);
/libcore/
Dnon_openjdk_java_files.mk152 luni/src/main/java/java/util/concurrent/atomic/AtomicReference.java \