Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 929) sorted by relevance

12345678910>>...38

/art/test/1960-obsolete-jit-multithread-native/
Dexpected-stdout.txt1 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/1961-obsolete-jit-multithread/
Dexpected-stdout.txt1 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/
Dmutex_test.cc32 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 …]
Dmutex.h54 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/1970-force-early-return-long/src/art/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/1968-force-early-return/src/art/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/
DSuspendEvents.java31 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/
Dexpected-stdout.txt1 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/
DTest924.java35 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/
DMain.java25 final Thread[] threads = new Thread[NUMBER_OF_THREADS]; 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/
DTest904.java51 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/
DMain.java19 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/
DThreadListTraces.java30 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/test/051-thread/src/
DMain.java58 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/runtime/
Dthread-inl.h37 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 …]
Dmonitor.h46 class Thread; variable
79 static ObjPtr<mirror::Object> MonitorEnter(Thread* thread,
88 static bool MonitorExit(Thread* thread, ObjPtr<mirror::Object> obj)
94 static void Notify(Thread* self, ObjPtr<mirror::Object> obj) in Notify()
98 static void NotifyAll(Thread* self, ObjPtr<mirror::Object> obj) in NotifyAll()
105 static void Wait(Thread* self,
112 static ThreadState FetchState(const Thread* thread,
119 static ObjPtr<mirror::Object> GetContendedMonitor(Thread* thread)
140 Thread* GetOwner() const { in GetOwner()
158 static void InflateThinLocked(Thread* self, Handle<mirror::Object> obj, LockWord lock_word,
[all …]
/art/test/924-threads/
Dexpected-stdout.txt12 Daemon Thread
17 Daemon Thread
29 Thread type is class java.lang.Thread
38 Thread type is class art.Test924$ExtThread
47Thread[FinalizerDaemon,5,system], Thread[FinalizerWatchdogDaemon,5,system], Thread[HeapTaskDaemon,…
52 [Thread(EventTestThread): start]
53 [Thread(EventTestThread): end]
54 Thread joined
/art/runtime/entrypoints/quick/
Dquick_entrypoints.h28 Thread::QuickEntryPointOffset<ptr_size>(OFFSETOF_MEMBER(QuickEntryPoints, x))
43 class Thread; variable
57 extern uint32_t JniMethodStart(Thread* self) NO_THREAD_SAFETY_ANALYSIS HOT_ATTR;
58 extern uint32_t JniMethodFastStart(Thread* self) NO_THREAD_SAFETY_ANALYSIS HOT_ATTR;
59 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self)
61 extern void JniMethodEnd(uint32_t saved_local_ref_cookie, Thread* self)
63 extern void JniMethodFastEnd(uint32_t saved_local_ref_cookie, Thread* self)
66 Thread* self)
69 Thread* self)
73 Thread* self)
[all …]
/art/test/1930-monitor-info/
Dexpected-stdout.txt3 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 …]

12345678910>>...38