Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 214) sorted by relevance

123456789

/art/test/1934-jvmti-signal-thread/
Dexpected.txt2 interrupting other thread before starting
5 stopping other thread before starting
8 Interrupting other thread recurring
9 Other thread Interrupted. err: java.lang.Error: Interrupted!
11 stopping other thread recurring
12 Other thread Stopped by: java.lang.Error: AWESOME!
14 Interrupting other thread spinning
15 Other thread Interrupted.
17 stopping other thread spinning
18 Other thread Stopped by: java.lang.Error: AWESOME!
[all …]
/art/runtime/
Dthread_list.cc117 bool ThreadList::Contains(Thread* thread) { in Contains() argument
118 return find(list_.begin(), list_.end(), thread) != list_.end(); in Contains()
122 for (const auto& thread : list_) { in Contains() local
123 if (thread->GetTid() == tid) { in Contains()
137 for (const auto& thread : list_) { in DumpNativeStacks() local
138 os << "DUMPING THREAD " << thread->GetTid() << "\n"; in DumpNativeStacks()
139 DumpNativeStack(os, thread->GetTid(), map.get(), "\t"); in DumpNativeStacks()
214 void Run(Thread* thread) override { in Run() argument
222 thread->Dump(local_os, dump_native_stack_, backtrace_map_.get()); in Run()
279 for (const auto& thread : list_) { in AssertThreadsAreSuspended() local
[all …]
Dthread-current-inl.h37 void* thread = __get_tls()[TLS_SLOT_ART_THREAD_SELF]; in Current() local
39 Thread* thread = Thread::self_tls_; in Current()
41 return reinterpret_cast<Thread*>(thread); in Current()
Dinstrumentation.h78 virtual void MethodEntered(Thread* thread,
83 virtual void MethodExited(Thread* thread,
94 virtual void MethodExited(Thread* thread,
104 virtual void MethodUnwind(Thread* thread,
111 virtual void DexPcMoved(Thread* thread,
118 virtual void FieldRead(Thread* thread,
124 virtual void FieldWritten(Thread* thread,
133 virtual void FieldWritten(Thread* thread,
142 virtual void ExceptionThrown(Thread* thread,
147 virtual void ExceptionHandled(Thread* thread, Handle<mirror::Throwable> exception_object)
[all …]
/art/test/1969-force-early-return-void/
Dexpected.txt3 NORMAL RUN: result for (ID: 0) StandardTestObject { cnt: 2 } on Test1969 target thread - 0
5 Will force return of Test1969 target thread - 1
6 result for (ID: 1) StandardTestObject { cnt: 1 } on Test1969 target thread - 1
9 NORMAL RUN: result for (ID: 2) SynchronizedFunctionTestObject { cnt: 2 } on Test1969 target thread
11 Will force return of Test1969 target thread - 3
12 result for (ID: 3) SynchronizedFunctionTestObject { cnt: 1 } on Test1969 target thread - 3
15 NORMAL RUN: result for (ID: 4) SynchronizedTestObject { cnt: 2 } on Test1969 target thread - 4
17 Will force return of Test1969 target thread - 5
18 result for (ID: 5) SynchronizedTestObject { cnt: 1 } on Test1969 target thread - 5
21 NORMAL RUN: result for (ID: 6) StandardTestObject { cnt: 2 } on Test1969 target thread - 6
[all …]
/art/test/1932-monitor-events-misc/
Dexpected.txt2 Locker thread 1 for NamedLock[Lock testLockUncontend] contended-LOCKING NamedLock[Lock testLockUnco…
4 Locker thread 1 for NamedLock[Lock testLockUncontend] LOCKED NamedLock[Lock testLockUncontend]
6 Locker thread 3 for NamedLock[Lock testLockThrowEnter] contended-LOCKING NamedLock[Lock testLockThr…
8 Locker thread 3 for NamedLock[Lock testLockThrowEnter] LOCKED NamedLock[Lock testLockThrowEnter]
9 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
13 Locker thread 5 for NamedLock[Lock testLockThrowEntered] contended-LOCKING NamedLock[Lock testLockT…
14 Locker thread 5 for NamedLock[Lock testLockThrowEntered] LOCKED NamedLock[Lock testLockThrowEntered]
16 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
20 Locker thread 7 for NamedLock[Lock testLockThrowBoth] contended-LOCKING NamedLock[Lock testLockThro…
22 Locker thread 7 for NamedLock[Lock testLockThrowBoth] LOCKED NamedLock[Lock testLockThrowBoth]
[all …]
/art/test/129-ThreadGetId/src/
DMain.java48 for (Thread thread : array) { in getHeapTaskDaemon()
49 if (thread.getName().equals("HeapTaskDaemon") && in getHeapTaskDaemon()
50 thread.getState() != Thread.State.NEW) { in getHeapTaskDaemon()
51 return thread; in getHeapTaskDaemon()
67 Thread thread = pair.getKey(); in test_getStackTraces() local
70 if (thread == heapDaemon) { in test_getStackTraces()
71 System.out.println(thread.getName() + " depth " + pair.getValue().length); in test_getStackTraces()
82 for (Thread thread : stMap.keySet()) { in test_getId()
83 if (thread.getId() <= 0) { in test_getId()
84 System.out.println("thread's ID is not positive: " + thread.getName()); in test_getId()
/art/runtime/native/
Djava_lang_Thread.cc46 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_isInterrupted() local
47 return (thread != nullptr) ? thread->IsInterrupted() : JNI_FALSE; in Thread_isInterrupted()
76 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeGetStatus() local
77 if (thread != nullptr) { in Thread_nativeGetStatus()
78 internal_thread_state = thread->GetState(); in Thread_nativeGetStatus()
118 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_getNativeTid() local
119 return (thread != nullptr) ? thread->GetTid() : 0; in Thread_getNativeTid()
129 Thread* thread = soa.Self(); in Thread_holdsLock() local
130 return thread->HoldsLock(object); in Thread_holdsLock()
136 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_interrupt0() local
[all …]
Ddalvik_system_VMStack.cc61 Thread* thread = thread_list->SuspendThreadByPeer(peer, in GetThreadStack() local
65 if (thread != nullptr) { in GetThreadStack()
69 trace = fn(thread, soa); in GetThreadStack()
72 bool resumed = thread_list->Resume(thread, SuspendReason::kInternal); in GetThreadStack()
85 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& soaa) in VMStack_fillStackTraceElements()
87 return thread->CreateInternalStackTrace<false>(soaa); in VMStack_fillStackTraceElements()
112 explicit ClosestUserClassLoaderVisitor(Thread* thread) in VMStack_getClosestUserClassLoader()
113 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in VMStack_getClosestUserClassLoader()
152 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& soaa) in VMStack_getThreadStackTrace()
154 return thread->CreateInternalStackTrace<false>(soaa); in VMStack_getThreadStackTrace()
[all …]
/art/test/1931-monitor-events/
Dexpected.txt2 Locker thread 1 for NamedLock[Lock testLock] contended-LOCKING NamedLock[Lock testLock]
3 Locker thread 1 for NamedLock[Lock testLock] LOCKED NamedLock[Lock testLock]
8 Locker thread 2 for NamedLock[Lock testWait] start-monitor-wait NamedLock[Lock testWait] timeout: 0
9 Locker thread 2 for NamedLock[Lock testWait] monitor-waited NamedLock[Lock testWait] timed_out: fal…
11 Locker thread 4 for NamedLock[Lock testTimedWait] start-monitor-wait NamedLock[Lock testTimedWait] …
12 Locker thread 4 for NamedLock[Lock testTimedWait] monitor-waited NamedLock[Lock testTimedWait] time…
15 Locker thread 6 for NamedLock[Lock testTimedWaitTimeout] start-monitor-wait NamedLock[Lock testTime…
16 Locker thread 6 for NamedLock[Lock testTimedWaitTimeout] monitor-waited NamedLock[Lock testTimedWai…
19 Unlocked wait thread: start-monitor-wait NamedLock[Lock testUnlockedWait] timeout: 0
23 Locker thread 7 for NamedLock[Lock testIllegalWait] start-monitor-wait NamedLock[Lock testIllegalWa…
[all …]
/art/test/1971-multi-force-early-return/
Dexpected.txt1 Thread 0: Thread: Test1971 - Thread 0 method returned: art.Test1971$NormalExit { thread: Test1971 -…
2 …ead 1 method returned: art.Test1971$ForcedExit { thread: Test1971 - Thread 1, creator: Concurrent
3 …ead 2 method returned: art.Test1971$ForcedExit { thread: Test1971 - Thread 2, creator: Concurrent
/art/openjdkjvmti/
Devents-inl.h193 inline std::vector<impl::EventHandlerFunc<kEvent>> EventHandler::CollectEvents(art::Thread* thread, in CollectEvents() argument
195 art::ReaderMutexLock mu(thread, envs_lock_); in CollectEvents()
198 if (ShouldDispatch<kEvent>(env, thread, args...)) { in CollectEvents()
209 inline void EventHandler::DispatchClassFileLoadHookEvent(art::Thread* thread, in DispatchClassFileLoadHookEvent() argument
219 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchClassFileLoadHookEvent()
227 CollectEvents<kEvent>(thread, in DispatchClassFileLoadHookEvent()
274 inline void EventHandler::DispatchEvent(art::Thread* thread, Args... args) const { in DispatchEvent() argument
275 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEvent()
280 DCHECK(thread == nullptr || !thread->IsExceptionPending()); in DispatchEvent()
281 std::vector<impl::EventHandlerFunc<kEvent>> events = CollectEvents<kEvent>(thread, args...); in DispatchEvent()
[all …]
Dti_stack.h53 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr);
56 jthread thread,
62 jthread thread,
75 jthread thread,
80 jthread thread,
84 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth);
86 static jvmtiError PopFrame(jvmtiEnv* env, jthread thread);
90 jvmtiEnv* env, EventHandler* event_handler, jthread thread, T value);
Dti_thread.h102 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr);
104 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr);
106 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data);
107 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr);
110 jthread thread,
115 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread);
116 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread);
135 static bool GetAliveNativeThread(jthread thread,
144 static bool GetNativeThread(jthread thread,
167 static JvmtiGlobalTLSData* GetGlobalTLSData(art::Thread* thread)
[all …]
/art/openjdkjvmti/include/
Djvmti.h540 jthread thread; member
723 jthread thread,
742 jthread thread,
748 jthread thread,
777 jthread thread,
787 jthread thread,
795 jthread thread,
805 jthread thread,
817 jthread thread,
830 jthread thread,
[all …]
/art/test/1922-owned-monitors-info/
Dexpected.txt1 owner-monitors, This thread
5 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
9 Owned monitors: [NamedLock("Lock 1"), Target("Current thread test: owned-monitor")]
13 Owned monitors: [NamedLock("Lock 1"), Target("Current thread test: owned-monitor")]
15 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
17 …ock("Lock 1"), NamedLock("Lock 2"), NamedLock("Lock 3"), Target("Current thread test: owned-monito…
19 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
21 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
23 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
27 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 3"), Target("Current thread test: owned-monit…
[all …]
/art/runtime/gc/space/
Dbump_pointer_space.cc105 size_t BumpPointerSpace::RevokeThreadLocalBuffers(Thread* thread) { in RevokeThreadLocalBuffers() argument
107 RevokeThreadLocalBuffersLocked(thread); in RevokeThreadLocalBuffers()
117 for (Thread* thread : thread_list) { in RevokeAllThreadLocalBuffers()
118 RevokeThreadLocalBuffers(thread); in RevokeAllThreadLocalBuffers()
123 void BumpPointerSpace::AssertThreadLocalBuffersAreRevoked(Thread* thread) { in AssertThreadLocalBuffersAreRevoked() argument
126 DCHECK(!thread->HasTlab()); in AssertThreadLocalBuffersAreRevoked()
137 for (Thread* thread : thread_list) { in AssertAllThreadLocalBuffersAreRevoked()
138 AssertThreadLocalBuffersAreRevoked(thread); in AssertAllThreadLocalBuffersAreRevoked()
181 for (Thread* thread : thread_list) { in GetBytesAllocated()
182 total += thread->GetThreadLocalBytesAllocated(); in GetBytesAllocated()
[all …]
/art/test/051-thread/src/
DMain.java48 for (TestCapacityThread thread : threads) { in testThreadCapacity()
49 thread.start(); in testThreadCapacity()
51 for (TestCapacityThread thread : threads) { in testThreadCapacity()
52 thread.join(); in testThreadCapacity()
126 Thread thread = new Thread() { in testSetName() local
132 thread.start(); in testSetName()
133 thread.setName("HelloWorld"); // b/17302037 hang if setName called after start in testSetName()
134 if (!thread.getName().equals("HelloWorld")) { in testSetName()
135 throw new AssertionError("Unexpected thread name: " + thread.getName()); in testSetName()
137 thread.join(); in testSetName()
[all …]
/art/test/051-thread/
Dexpected.txt2 thread test starting
3 testThreadCapacity thread count: 128
4 testThreadDaemons starting thread 'TestDaemonThread'
17 thread test done
/art/test/924-threads/
Dthreads.cc83 jthread thread = nullptr; in Java_art_Test924_getCurrentThread() local
84 jvmtiError result = jvmti_env->GetCurrentThread(&thread); in Java_art_Test924_getCurrentThread()
88 return thread; in Java_art_Test924_getCurrentThread()
92 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getThreadInfo() argument
96 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in Java_art_Test924_getThreadInfo()
140 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getThreadState() argument
142 jvmtiError result = jvmti_env->GetThreadState(thread, &state); in Java_art_Test924_getThreadState()
170 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getTLS() argument
172 jvmtiError result = jvmti_env->GetThreadLocalStorage(thread, &tls); in Java_art_Test924_getTLS()
180 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread, jlong val) { in Java_art_Test924_setTLS() argument
[all …]
/art/tools/jvmti-agents/ti-fast/
Dtifast.cc43 struct jthreadContainer { jthread thread; }; member
75 …VM_INIT), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jthreadContainer{.thread =
77 …D_START), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jthreadContainer{.thread =
78 …EAD_END), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jthreadContainer{.thread =
80 …), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass), (jvmti, jni, jthreadContainer{.th…
81 …), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass), (jvmti, jni, jthreadContainer{.th…
83 … jthread thread, jmethodID meth1, jlocation loc1, jobject obj, jmethodID meth2, jlocation loc2), (…
84 …vmti, JNIEnv* jni, jthread thread, jmethodID meth, jlocation loc, jobject obj), (jvmti, jni, jthre…
85 …Env* jvmti, JNIEnv* jni, jthread thread, jmethodID meth, jlocation loc), (jvmti, jni, jthreadConta…
86 …, (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jmethodID meth), (jvmti, jni, jthreadContainer{.t…
[all …]
/art/test/1912-get-set-local-primitive/
Dexpected.txt1 …nning public static void art.Test1912.IntMethod(java.lang.Runnable) with "GetInt" on remote thread.
4 …ning public static void art.Test1912.IntMethod(java.lang.Runnable) with "GetLong" on remote thread.
7 …ing public static void art.Test1912.IntMethod(java.lang.Runnable) with "GetFloat" on remote thread.
10 …ng public static void art.Test1912.IntMethod(java.lang.Runnable) with "GetDouble" on remote thread.
13 …ng public static void art.Test1912.IntMethod(java.lang.Runnable) with "GetObject" on remote thread.
16 …nning public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetInt" on remote thread.
19 …ning public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetLong" on remote thread.
22 …ing public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetFloat" on remote thread.
25 …ng public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetDouble" on remote thread.
28 …ng public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetObject" on remote thread.
[all …]
/art/test/1967-get-set-local-bad-slot/
Dexpected.txt1 … static void art.Test1967.IntMethod(java.lang.Runnable) with "GetInt_at_too_high" on remote thread.
4 …static void art.Test1967.IntMethod(java.lang.Runnable) with "GetLong_at_too_high" on remote thread.
7 …atic void art.Test1967.IntMethod(java.lang.Runnable) with "GetObject_at_too_high" on remote thread.
10 … static void art.Test1967.IntMethod(java.lang.Runnable) with "SetInt_at_too_high" on remote thread.
13 …static void art.Test1967.IntMethod(java.lang.Runnable) with "SetLong_at_too_high" on remote thread.
16 …atic void art.Test1967.IntMethod(java.lang.Runnable) with "SetObject_at_too_high" on remote thread.
19 … static void art.Test1967.IntMethod(java.lang.Runnable) with "GetInt_at_negative" on remote thread.
22 …static void art.Test1967.IntMethod(java.lang.Runnable) with "GetLong_at_negative" on remote thread.
25 …atic void art.Test1967.IntMethod(java.lang.Runnable) with "GetObject_at_negative" on remote thread.
28 … static void art.Test1967.IntMethod(java.lang.Runnable) with "SetInt_at_negative" on remote thread.
[all …]
/art/test/121-simple-suspend-check/src/
DMain.java19 SpinThread thread = new SpinThread(); in main() local
20 thread.setDaemon(true); in main()
21 thread.start(); in main()
/art/test/1966-get-set-local-objects-no-table/
Dexpected.txt1 …st.TestCases1966.ObjectMethod(java.util.function.IntConsumer) with "GetGetObject" on remote thread.
4 …rt_test.TestCases1966.ObjectMethod(java.util.function.IntConsumer) with "SetNull" on remote thread.
7 …t.TestCases1966.ObjectMethod(java.util.function.IntConsumer) with "SetTestClass1" on remote thread.
10 …estCases1966.ObjectMethod(java.util.function.IntConsumer) with "SetTestClass1ext" on remote thread.
13 …t.TestCases1966.ObjectMethod(java.util.function.IntConsumer) with "SetTestClass2" on remote thread.
16 …stCases1966.ObjectMethod(java.util.function.IntConsumer) with "SetTestClass2impl" on remote thread.
19 …Cases1966.CastInterfaceMethod(java.util.function.IntConsumer) with "GetGetObject" on remote thread.
22 ….TestCases1966.CastInterfaceMethod(java.util.function.IntConsumer) with "SetNull" on remote thread.
25 …ases1966.CastInterfaceMethod(java.util.function.IntConsumer) with "SetTestClass1" on remote thread.
28 …s1966.CastInterfaceMethod(java.util.function.IntConsumer) with "SetTestClass1ext" on remote thread.
[all …]

123456789