/art/test/1961-obsolete-jit-multithread/ |
D | expected.txt | 1 Thread 0: Hello - Start method sayHi 2 Thread 0: Not doing anything here 3 Thread 0: Hello - End method sayHi 4 Thread 0: Hello - Start method sayHi 5 Thread 0: Requesting redefinition 6 Thread 0: Hello - End method sayHi 7 Thread 0: goodbye - Start method sayHi 8 Thread 0: Not doing anything here 9 Thread 0: goodbye - End method sayHi 11 Thread 1: Hello - Start method sayHi [all …]
|
/art/test/1960-obsolete-jit-multithread-native/ |
D | expected.txt | 1 Thread 0: Hello - Start method sayHi 2 Thread 0: Not doing anything here 3 Thread 0: Hello - End method sayHi 4 Thread 0: Hello - Start method sayHi 5 Thread 0: Requesting redefinition 6 Thread 0: Hello - End method sayHi 7 Thread 0: goodbye - Start method sayHi 8 Thread 0: Not doing anything here 9 Thread 0: goodbye - End method sayHi 11 Thread 1: Hello - Start method sayHi [all …]
|
/art/runtime/base/ |
D | mutex_test.cc | 32 mu.AssertNotHeld(Thread::Current()); in AssertDepth() 34 mu.AssertHeld(Thread::Current()); in AssertDepth() 42 mu.Lock(Thread::Current()); in TEST_F() 44 mu.Unlock(Thread::Current()); in TEST_F() 52 ASSERT_TRUE(mu.TryLock(Thread::Current())); in TryLockUnlockTest() 54 mu.Unlock(Thread::Current()); in TryLockUnlockTest() 66 mu.Lock(Thread::Current()); in RecursiveLockUnlockTest() 68 mu.Lock(Thread::Current()); in RecursiveLockUnlockTest() 70 mu.Unlock(Thread::Current()); in RecursiveLockUnlockTest() 72 mu.Unlock(Thread::Current()); in RecursiveLockUnlockTest() [all …]
|
D | mutex.h | 54 class Thread; variable 108 void RegisterAsLocked(Thread* self); 110 void RegisterAsUnlocked(Thread* self); 111 void CheckSafeToWait(Thread* self); 180 void ExclusiveLock(Thread* self) ACQUIRE(); 181 void Lock(Thread* self) ACQUIRE() { ExclusiveLock(self); } in Lock() 184 bool ExclusiveTryLock(Thread* self) TRY_ACQUIRE(true); 185 bool TryLock(Thread* self) TRY_ACQUIRE(true) { return ExclusiveTryLock(self); } in TryLock() 187 bool ExclusiveTryLockWithSpinning(Thread* self) TRY_ACQUIRE(true); 190 void ExclusiveUnlock(Thread* self) RELEASE(); [all …]
|
/art/test/1968-force-early-return/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1954-pop-frame-jit/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1969-force-early-return-void/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1955-pop-frame-jit-called/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/jvmti-common/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1953-pop-frame/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1956-pop-frame-jit-calling/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1971-multi-force-early-return/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1970-force-early-return-long/src/art/ |
D | SuspendEvents.java | 31 public static native void setupSuspendBreakpointFor(Executable meth, long loc, Thread thr); in setupSuspendBreakpointFor() 32 public static native void clearSuspendBreakpointFor(Thread thr); in clearSuspendBreakpointFor() 34 public static native void setupSuspendSingleStepAt(Executable meth, long loc, Thread thr); in setupSuspendSingleStepAt() 35 public static native void clearSuspendSingleStepFor(Thread thr); in clearSuspendSingleStepFor() 37 public static native void setupFieldSuspendFor(Class klass, Field f, boolean access, Thread thr); in setupFieldSuspendFor() 38 public static native void clearFieldSuspendFor(Thread thr); in clearFieldSuspendFor() 40 public static native void setupSuspendMethodEvent(Executable meth, boolean enter, Thread thr); in setupSuspendMethodEvent() 41 public static native void clearSuspendMethodEvent(Thread thr); in clearSuspendMethodEvent() 44 Executable meth, boolean is_catch, Thread thr); in setupSuspendExceptionEvent() 45 public static native void clearSuspendExceptionEvent(Thread thr); in clearSuspendExceptionEvent() [all …]
|
/art/test/1971-multi-force-early-return/ |
D | expected.txt | 1 Thread 0: Thread: Test1971 - Thread 0 method returned: art.Test1971$NormalExit { thread: Test1971 -… 2 Thread 1: Thread: Test1971 - Thread 1 method returned: art.Test1971$ForcedExit { thread: Test1971 -… 3 Thread 2: Thread: Test1971 - Thread 2 method returned: art.Test1971$ForcedExit { thread: Test1971 -…
|
/art/test/924-threads/src/art/ |
D | Test924.java | 35 Thread t = new Thread("TestThread") { in run() 50 Thread t1 = Thread.currentThread(); in doTest() 51 Thread t2 = getCurrentThread(); in doTest() 65 Thread t3 = new Thread("Daemon Thread"); in doTest() 72 Thread.sleep(500); // Wait a little bit. in doTest() 77 Thread t4 = new Thread("Subclass") { in doTest() 82 doStateTests(Thread::new); in doTest() 92 private static final class ExtThread extends Thread { 102 System.out.println(Integer.toHexString(getThreadState(Thread.currentThread()))); in doCurrentThreadStateTests() 105 private static void doStateTests(Function<Runnable, Thread> mkThread) throws Exception { in doStateTests() [all …]
|
/art/test/129-ThreadGetId/src/ |
D | Main.java | 25 final Thread[] threads = new Thread[numberOfThreads]; in main() 27 threads[t] = new Thread(new Main()); in main() 30 for (Thread t : threads) { in main() 39 static Thread getHeapTaskDaemon() throws Exception { in getHeapTaskDaemon() 46 Thread[] array = new Thread[activeCount]; in getHeapTaskDaemon() 48 for (Thread thread : array) { in getHeapTaskDaemon() 50 thread.getState() != Thread.State.NEW) { in getHeapTaskDaemon() 55 Thread.sleep(10); in getHeapTaskDaemon() 60 Thread heapDaemon = getHeapTaskDaemon(); in test_getStackTraces() 65 Map<Thread, StackTraceElement[]> map = Thread.getAllStackTraces(); in test_getStackTraces() [all …]
|
/art/test/904-object-allocation/src/art/ |
D | Test904.java | 51 new Thread[] { Thread.currentThread(), }))); in doTest() 62 enableAllocationTracking(Thread.currentThread(), true); in doTest() 66 enableAllocationTracking(Thread.currentThread(), false); in doTest() 71 new Thread[] { Thread.currentThread(), }))); in doTest() 74 Thread test_thread = testThread(l, true, true); in doTest() 79 new Thread[] { Thread.currentThread(), test_thread, }))); in doTest() 85 new Thread[] { Thread.currentThread(), test_thread, }))); in doTest() 97 new Thread[] { Thread.currentThread(), test_thread, }))); in doTest() 102 private static Thread testThread(final ArrayList<Object> l, final boolean sameThread, in testThread() 108 final Thread thisThread = Thread.currentThread(); in testThread() [all …]
|
/art/test/063-process-manager/src/ |
D | Main.java | 19 Thread.sleep(2000); in main() 29 Thread.sleep(250); in child() 35 private static boolean isReaperThread(Thread t) { in isReaperThread() 41 Map<Thread, StackTraceElement[]> traces = Thread.getAllStackTraces(); in checkManager() 44 for (Map.Entry<Thread, StackTraceElement[]> entry : in checkManager() 46 Thread t = entry.getKey(); in checkManager() 48 Thread.State state = t.getState(); in checkManager() 50 if (state != Thread.State.RUNNABLE && state != Thread.State.TIMED_WAITING) { in checkManager() 66 Map<Thread, StackTraceElement[]> traces = Thread.getAllStackTraces(); in waitForReaperTimedWaiting() 71 for (Thread t : traces.keySet()) { in waitForReaperTimedWaiting() [all …]
|
/art/test/911-get-stack-trace/src/art/ |
D | ThreadListTraces.java | 30 Thread threads[] = new Thread[N]; in doTest() 32 Thread list[] = new Thread[N/2 + 1]; in doTest() 35 Thread t = new Thread("ThreadListTraces Thread " + i) { in doTest() 46 list[list.length - 1] = Thread.currentThread(); in doTest() 49 Thread.yield(); in doTest() 50 Thread.sleep(500); // A little bit of time... in doTest() 67 public static void printList(Thread[] threads, int max) { in printList() 72 public static native Object[][] getThreadListStackTraces(Thread threads[], int max); in getThreadListStackTraces()
|
/art/runtime/ |
D | monitor.h | 46 class Thread; variable 73 static ObjPtr<mirror::Object> MonitorEnter(Thread* thread, 82 static bool MonitorExit(Thread* thread, ObjPtr<mirror::Object> obj) 88 static void Notify(Thread* self, ObjPtr<mirror::Object> obj) in Notify() 92 static void NotifyAll(Thread* self, ObjPtr<mirror::Object> obj) in NotifyAll() 99 static void Wait(Thread* self, 106 static ThreadState FetchState(const Thread* thread, 113 static ObjPtr<mirror::Object> GetContendedMonitor(Thread* thread) 134 Thread* GetOwner() const { in GetOwner() 152 static void InflateThinLocked(Thread* self, Handle<mirror::Object> obj, LockWord lock_word, [all …]
|
D | thread-inl.h | 37 static inline Thread* ThreadForEnv(JNIEnv* env) { in ThreadForEnv() 42 inline void Thread::AllowThreadSuspension() { in AllowThreadSuspension() 43 DCHECK_EQ(Thread::Current(), this); in AllowThreadSuspension() 52 inline void Thread::CheckSuspend() { in CheckSuspend() 53 DCHECK_EQ(Thread::Current(), this); in CheckSuspend() 67 inline void Thread::CheckEmptyCheckpointFromWeakRefAccess(BaseMutex* cond_var_mutex) { in CheckEmptyCheckpointFromWeakRefAccess() 68 Thread* self = Thread::Current(); in CheckEmptyCheckpointFromWeakRefAccess() 92 inline void Thread::CheckEmptyCheckpointFromMutex() { in CheckEmptyCheckpointFromMutex() 93 DCHECK_EQ(Thread::Current(), this); in CheckEmptyCheckpointFromMutex() 103 inline ThreadState Thread::SetState(ThreadState new_state) { in SetState() [all …]
|
/art/test/924-threads/ |
D | expected.txt | 12 Daemon Thread 17 Daemon Thread 29 Thread type is class java.lang.Thread 38 Thread type is class art.Test924$ExtThread 47 …Thread[FinalizerDaemon,5,system], Thread[FinalizerWatchdogDaemon,5,system], Thread[HeapTaskDaemon,… 52 [Thread(EventTestThread): start] 53 [Thread(EventTestThread): end] 54 Thread joined
|
/art/test/051-thread/src/ |
D | Main.java | 58 private static class TestCapacityThread extends Thread { 72 Thread t = new Thread(null, new TestDaemonThread(), "TestDaemonThread", 7168); in testThreadDaemons() 93 Thread.currentThread().setDaemon(true); in run() 100 Thread.sleep(2000); in run() 112 Thread.currentThread().interrupt(); in testSleepZero() 114 Thread.sleep(0); in testSleepZero() 117 if (Thread.currentThread().isInterrupted()) { in testSleepZero() 126 Thread thread = new Thread() { in testSetName() 148 t1.setPriority(Thread.MAX_PRIORITY); in testThreadPriorities() 151 if (supportsThreadPriorities() && (t1.getNativePriority() != Thread.MAX_PRIORITY)) { in testThreadPriorities() [all …]
|
/art/test/1930-monitor-info/ |
D | expected.txt | 3 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testSingleThread], owner: main, entryCoun… 6 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testSingleThread], owner: main, entryCoun… 10 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwice], owner: main, entryCount… 14 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceNative], owner: main, entr… 18 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceJN], owner: main, entryCou… 22 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockedTwiceNJ], owner: main, entryCou… 24 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockWait], owner: main, entryCount: 1… 25 Thread[Test1930 Thread - testLockWait]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockWait], … 26 Thread[main]: MonitorUsage{ monitor: NamedLock[Test1930 - testLockWait], owner: <NULL>, entryCount:… 28 Thread[Test1930 Thread - testLockWait]: MonitorUsage{ monitor: NamedLock[Test1930 - testNotifyWait]… [all …]
|
/art/test/925-threadgroups/src/art/ |
D | Test925.java | 33 Thread t1 = Thread.currentThread(); in doTest() 58 Thread t2 = new Thread(testGroup, "Test Thread") { in doTest() 95 Thread[] threads = (Thread[])data[0]; in checkChildren() 98 List<Thread> threadList = new ArrayList<>(Arrays.asList(threads)); in checkChildren() 101 Iterator<Thread> it = threadList.iterator(); in checkChildren() 103 Thread t = it.next(); in checkChildren() 126 Thread[] threads = (Thread[])data[0]; in waitGroupChildren() 127 List<Thread> lthreads = new ArrayList<>(Arrays.asList(threads)); in waitGroupChildren() 128 Iterator<Thread> it = lthreads.iterator(); in waitGroupChildren() 130 Thread t = it.next(); in waitGroupChildren() [all …]
|