/art/test/183-rmw-stress-test/src/ |
D | Main.java | 52 Thread[] threads = new Thread[4]; in $noinline$testVarHandleBytes() local 55 threads[i] = new Thread() { in $noinline$testVarHandleBytes() 69 threads[i].start(); in $noinline$testVarHandleBytes() 76 threads[i].join(); in $noinline$testVarHandleBytes() 91 Thread[] threads = new Thread[4]; in $noinline$testVarHandleInts() local 94 threads[i] = new Thread() { in $noinline$testVarHandleInts() 108 threads[i].start(); in $noinline$testVarHandleInts() 115 threads[i].join(); in $noinline$testVarHandleInts() 130 Thread[] threads = new Thread[4]; in $noinline$testVarHandleLongs() local 133 threads[i] = new Thread() { in $noinline$testVarHandleLongs() [all …]
|
/art/test/626-const-class-linking/src/ |
D | Main.java | 123 final Thread[] threads = new Thread[4]; in testRacyLoader() local 124 final Object[] results = new Object[threads.length]; in testRacyLoader() 126 final RacyLoader racy_loader = new RacyLoader(system_loader, threads.length); in testRacyLoader() 130 for (int i = 0; i != threads.length; ++i) { in testRacyLoader() 145 threads[i] = t; in testRacyLoader() 147 for (Thread t : threads) { in testRacyLoader() 157 final Thread[] threads = new Thread[4]; in testRacyLoader2() local 158 final Object[] results = new Object[threads.length]; in testRacyLoader2() 160 final RacyLoader racy_loader = new RacyLoader(system_loader, threads.length); in testRacyLoader2() 166 for (int i = 0; i != threads.length; ++i) { in testRacyLoader2() [all …]
|
/art/test/149-suspend-all-stress/src/ |
D | Main.java | 24 final Thread[] threads = new Thread[numberOfThreads]; in main() local 25 for (int t = 0; t < threads.length; t++) { in main() 26 threads[t] = new Thread(new Main()); in main() 27 threads[t].start(); in main() 29 for (Thread t : threads) { in main()
|
/art/test/924-threads/ |
D | Android.bp | 3 // Build rules for ART run-test `924-threads`. 16 name: "art-run-test-924-threads", 21 ":art-run-test-924-threads-expected-stdout", 22 ":art-run-test-924-threads-expected-stderr", 28 name: "art-run-test-924-threads-expected-stdout", 29 out: ["art-run-test-924-threads-expected-stdout.txt"], 36 name: "art-run-test-924-threads-expected-stderr", 37 out: ["art-run-test-924-threads-expected-stderr.txt"],
|
/art/test/911-get-stack-trace/src/art/ |
D | ThreadListTraces.java | 30 Thread threads[] = new Thread[N]; in doTest() local 41 threads[i] = t; in doTest() 63 threads[i].join(); in doTest() 67 public static void printList(Thread[] threads, int max) { in printList() argument 68 PrintThread.printAll(getThreadListStackTraces(threads, max)); in printList() 72 public static native Object[][] getThreadListStackTraces(Thread threads[], int max); in getThreadListStackTraces() argument
|
/art/test/597-deopt-busy-loop/src/ |
D | SimpleLoop.java | 28 final Thread[] threads = new Thread[numberOfThreads]; in main() local 29 for (int t = 0; t < threads.length; t++) { in main() 30 threads[t] = new Thread(new SimpleLoop(t)); in main() 31 threads[t].start(); in main() 33 for (Thread t : threads) { in main()
|
D | SimdLoop.java | 31 final Thread[] threads = new Thread[numberOfThreads]; in main() local 32 for (int t = 0; t < threads.length; t++) { in main() 33 threads[t] = new Thread(new SimdLoop(t)); in main() 34 threads[t].start(); in main() 36 for (Thread t : threads) { in main()
|
D | FloatLoop.java | 30 final Thread[] threads = new Thread[numberOfThreads]; in main() local 31 for (int t = 0; t < threads.length; t++) { in main() 32 threads[t] = new Thread(new FloatLoop(t)); in main() 33 threads[t].start(); in main() 35 for (Thread t : threads) { in main()
|
/art/test/ti-agent/ |
D | suspension_helper.cc | 51 std::vector<jthread> threads(CopyToVector(env, thr)); in Java_art_Suspension_resumeList() local 55 jintArray ret = env->NewIntArray(threads.size()); in Java_art_Suspension_resumeList() 61 jvmti_env->ResumeThreadList(threads.size(), in Java_art_Suspension_resumeList() 62 threads.data(), in Java_art_Suspension_resumeList() 72 std::vector<jthread> threads(CopyToVector(env, thrs)); in Java_art_Suspension_suspendList() local 76 jintArray ret = env->NewIntArray(threads.size()); in Java_art_Suspension_suspendList() 82 jvmti_env->SuspendThreadList(threads.size(), in Java_art_Suspension_suspendList() 83 threads.data(), in Java_art_Suspension_suspendList()
|
/art/test/304-method-tracing/src/ |
D | Main.java | 31 ArrayList<Thread> threads = new ArrayList<Thread>(); in main() local 33 threads.add(new Thread(new ThreadRunnable(), "TestThread-" + i)); in main() 36 for (Thread t : threads) { in main() 40 for (Thread t : threads) { in main()
|
/art/test/597-deopt-new-string/src/ |
D | Main.java | 34 final Thread[] threads = new Thread[numberOfThreads]; in main() local 35 for (int t = 0; t < threads.length; t++) { in main() 36 threads[t] = new Thread(new Main(t)); in main() 37 threads[t].start(); in main() 39 for (Thread t : threads) { in main()
|
/art/test/145-alloc-tracking-stress/src-art/ |
D | Main.java | 47 final Thread[] threads = new Thread[numberOfThreads]; in main() local 48 for (int t = 0; t < threads.length; t++) { in main() 49 threads[t] = new Thread(new Main(t)); in main() 50 threads[t].start(); in main() 52 for (Thread t : threads) { in main()
|
/art/test/597-deopt-invoke-stub/src/ |
D | Main.java | 35 final Thread[] threads = new Thread[numberOfThreads]; in main() local 36 for (int t = 0; t < threads.length; t++) { in main() 37 threads[t] = new Thread(new Main(t)); in main() 38 threads[t].start(); in main() 40 for (Thread t : threads) { in main()
|
/art/test/2005-pause-all-redefine-multithreaded/ |
D | pause-all.cc | 43 std::vector<jthread> threads; in Java_art_Test2005_UpdateFieldValuesAndResumeThreads() local 44 threads.reserve(env->GetArrayLength(threads_arr)); in Java_art_Test2005_UpdateFieldValuesAndResumeThreads() 46 threads.push_back(env->GetObjectArrayElement(threads_arr, i)); in Java_art_Test2005_UpdateFieldValuesAndResumeThreads() 81 if (!threads.empty()) { in Java_art_Test2005_UpdateFieldValuesAndResumeThreads() 82 std::vector<jvmtiError> errs(threads.size(), JVMTI_ERROR_NONE); in Java_art_Test2005_UpdateFieldValuesAndResumeThreads() 83 CHECK_EQ(jvmti_env->ResumeThreadList(threads.size(), threads.data(), errs.data()), in Java_art_Test2005_UpdateFieldValuesAndResumeThreads()
|
D | info.txt | 1 Tests structural redefinition with multiple threads. 3 Tests that using the structural redefinition while pausing all other (main thread-group) threads 5 other threads are suspended, thus making them look initialized.
|
/art/test/114-ParallelGC/src/ |
D | Main.java | 47 Thread[] threads = new Thread[THREAD_COUNT]; in main() local 52 CyclicBarrier startBarrier = new CyclicBarrier(threads.length); in main() 54 for (int i = 0; i < threads.length; i++) { in main() 55 threads[i] = new Thread(new Main(startBarrier)); in main() 56 threads[i].start(); in main() 60 for (Thread thread : threads) { in main()
|
/art/test/051-thread/src/ |
D | Main.java | 43 TestCapacityThread[] threads = new TestCapacityThread[128]; in testThreadCapacity() local 44 for (int i = 0; i < threads.length; i++) { in testThreadCapacity() 45 threads[i] = new TestCapacityThread(); in testThreadCapacity() 48 for (TestCapacityThread thread : threads) { in testThreadCapacity() 51 for (TestCapacityThread thread : threads) { in testThreadCapacity() 168 Thread threads[] = new Thread[10]; in testMainThreadGroup() local 170 current.getThreadGroup().enumerate(threads); in testMainThreadGroup() 172 for (Thread t : threads) { in testMainThreadGroup() 178 throw new RuntimeException("Did not find main thread: " + Arrays.toString(threads)); in testMainThreadGroup()
|
/art/test/925-threadgroups/src/art/ |
D | Test925.java | 93 private static ArrayList<Thread> filteredThread(Thread[] threads) { in filteredThread() argument 94 ArrayList<Thread> list = new ArrayList<>(Arrays.asList(threads)); in filteredThread() 110 Thread[] threads = (Thread[])data[0]; in checkChildren() local 113 List<Thread> threadList = filteredThread(threads); in checkChildren() 131 Thread[] threads = (Thread[])data[0]; in waitGroupChildren() local 132 List<Thread> lthreads = filteredThread(threads); in waitGroupChildren() 140 Thread[] threads = (Thread[])data[0]; in waitGroupChildren() local 141 System.out.println(Arrays.toString(threads)); in waitGroupChildren()
|
/art/test/165-lock-owner-proxy/src/ |
D | Main.java | 48 final Thread[] threads = new Thread[numberOfThreads]; in main() local 49 for (int t = 0; t < threads.length; t++) { in main() 50 threads[t] = new Thread((t % 2 == 0) ? new ProxyRunner() : new SyncRunner()); in main() 52 for (Thread t : threads) { in main() 57 for (Thread t : threads) { in main()
|
/art/test/144-static-field-sigquit/ |
D | expected-stdout.txt | 1 Starting threads... 4 Joined threads
|
/art/test/1928-exception-event-exception/src/art/ |
D | Suspension.java | 28 public native static int[] suspendList(Thread... threads); in suspendList() argument 29 public native static int[] resumeList(Thread... threads); in resumeList() argument
|
/art/test/1931-monitor-events/src/art/ |
D | Suspension.java | 28 public native static int[] suspendList(Thread... threads); in suspendList() argument 29 public native static int[] resumeList(Thread... threads); in resumeList() argument
|
/art/test/1967-get-set-local-bad-slot/src/art/ |
D | Suspension.java | 28 public native static int[] suspendList(Thread... threads); in suspendList() argument 29 public native static int[] resumeList(Thread... threads); in resumeList() argument
|
/art/test/1956-pop-frame-jit-calling/src/art/ |
D | Suspension.java | 28 public native static int[] suspendList(Thread... threads); in suspendList() argument 29 public native static int[] resumeList(Thread... threads); in resumeList() argument
|
/art/test/1933-monitor-current-contended/src/art/ |
D | Suspension.java | 28 public native static int[] suspendList(Thread... threads); in suspendList() argument 29 public native static int[] resumeList(Thread... threads); in resumeList() argument
|