Home
last modified time | relevance | path

Searched refs:ThreadLocalRandom (Results 1 – 14 of 14) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java9 import java.util.concurrent.ThreadLocalRandom;
54 ThreadLocalRandom.current().setSeed(17); in testSetSeed()
63 int f = ThreadLocalRandom.current().nextInt(); in testNextInt()
65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()
74 long f = ThreadLocalRandom.current().nextLong();
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
85 boolean f = ThreadLocalRandom.current().nextBoolean();
87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
96 float f = ThreadLocalRandom.current().nextFloat();
98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
[all …]
DThreadLocalRandom8Test.java9 import java.util.concurrent.ThreadLocalRandom;
43 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamSize()
60 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamBounds()
77 ThreadLocalRandom r = ThreadLocalRandom.current(); in testIntsCount()
92 ThreadLocalRandom r = ThreadLocalRandom.current(); in testLongsCount()
107 ThreadLocalRandom r = ThreadLocalRandom.current(); in testDoublesCount()
122 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedInts()
141 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedLongs()
160 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedDoubles()
179 ThreadLocalRandom r = ThreadLocalRandom.current(); in testUnsizedIntsCount()
[all …]
DRecursiveActionTest.java20 import java.util.concurrent.ThreadLocalRandom;
1240 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java82 public class ThreadLocalRandom extends Random { class
146 private ThreadLocalRandom() { in ThreadLocalRandom() method in ThreadLocalRandom
171 public static ThreadLocalRandom current() { in current()
771 consumer.accept(ThreadLocalRandom.current().internalNextInt(origin, bound)); in tryAdvance()
784 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()
826 consumer.accept(ThreadLocalRandom.current().internalNextLong(origin, bound)); in tryAdvance()
839 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()
882 consumer.accept(ThreadLocalRandom.current().internalNextDouble(origin, bound)); in tryAdvance()
895 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()
1050 static final ThreadLocalRandom instance = new ThreadLocalRandom();
DForkJoinPool.java2270 int r = ThreadLocalRandom.nextSecondarySeed(); in findNonEmptyStealQueue()
2531 if ((r = ThreadLocalRandom.getProbe()) == 0) { in externalPush()
2532 ThreadLocalRandom.localInit(); in externalPush()
2533 r = ThreadLocalRandom.getProbe(); in externalPush()
2550 r = ThreadLocalRandom.advanceProbe(r); in externalPush()
2575 int r = ThreadLocalRandom.getProbe(); in commonSubmitterQueue()
2586 int r = ThreadLocalRandom.getProbe(); in tryExternalUnpush()
2599 int r = ThreadLocalRandom.getProbe(); in externalHelpComplete()
3056 int r = ThreadLocalRandom.nextSecondarySeed(); in pollSubmission()
DLinkedTransferQueue.java697 ThreadLocalRandom randomYields = null; // bound if needed in awaitMatch()
714 randomYields = ThreadLocalRandom.current(); in awaitMatch()
DConcurrentSkipListMap.java852 int rnd = ThreadLocalRandom.nextSecondarySeed(); in doPut()
1376 int rnd = ThreadLocalRandom.current().nextInt(); in buildFromSorted()
1481 int rnd = ThreadLocalRandom.current().nextInt(); in readObject()
DConcurrentHashMap.java2332 (a = as[ThreadLocalRandom.getProbe() & m]) == null || in addCount()
2588 if ((h = ThreadLocalRandom.getProbe()) == 0) { in fullAddCount()
2589 ThreadLocalRandom.localInit(); // force initialization in fullAddCount()
2590 h = ThreadLocalRandom.getProbe(); in fullAddCount()
2644 h = ThreadLocalRandom.advanceProbe(h); in fullAddCount()
DCompletableFuture.java1743 if (ThreadLocalRandom.nextSecondarySeed() >= 0) in waitingGet()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java39 import java.util.concurrent.ThreadLocalRandom;
226 ThreadLocalRandom.current(); // force initialization in longAccumulate()
310 ThreadLocalRandom.current(); // force initialization in doubleAccumulate()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DDistinctOpTest.java40 import java.util.concurrent.ThreadLocalRandom;
75 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DLockSupport.java402 else if ((r = java.util.concurrent.ThreadLocalRandom.current().nextInt()) == 0) in nextSecondarySeed()
/libcore/ojluni/src/main/java/java/util/
DWeakHashMap.java30 import java.util.concurrent.ThreadLocalRandom;
/libcore/
Dopenjdk_java_files.bp977 "ojluni/src/main/java/java/util/concurrent/ThreadLocalRandom.java",