/art/runtime/ |
D | thread_list.cc | 117 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() 209 void Run(Thread* thread) OVERRIDE { in Run() argument 217 thread->Dump(local_os, dump_native_stack_, backtrace_map_.get()); in Run() 274 for (const auto& thread : list_) { in AssertThreadsAreSuspended() local [all …]
|
D | instrumentation.h | 66 virtual void MethodEntered(Thread* thread, 71 virtual void MethodExited(Thread* thread, 81 virtual void MethodExited(Thread* thread, 90 virtual void MethodUnwind(Thread* thread, 97 virtual void DexPcMoved(Thread* thread, 104 virtual void FieldRead(Thread* thread, 110 virtual void FieldWritten(Thread* thread, 119 virtual void FieldWritten(Thread* thread, 128 virtual void ExceptionCaught(Thread* thread, 133 virtual void Branch(Thread* thread, [all …]
|
D | thread-current-inl.h | 37 void* thread = __get_tls()[TLS_SLOT_ART_THREAD_SELF]; in Current() local 39 void* thread = pthread_getspecific(Thread::pthread_key_self_); in Current() 41 return reinterpret_cast<Thread*>(thread); in Current()
|
D | trace.h | 139 void CompareAndUpdateStackTrace(Thread* thread, std::vector<ArtMethod*>* stack_trace) 143 void MethodEntered(Thread* thread, 149 void MethodExited(Thread* thread, 156 void MethodUnwind(Thread* thread, 162 void DexPcMoved(Thread* thread, 168 void FieldRead(Thread* thread, 174 void FieldWritten(Thread* thread, 181 void ExceptionCaught(Thread* thread, 184 void Branch(Thread* thread, 189 void InvokeVirtualOrInterface(Thread* thread, [all …]
|
D | instrumentation.cc | 51 void InstrumentationListener::MethodExited(Thread* thread, in MethodExited() argument 60 MethodExited(thread, this_object, method, dex_pc, v); in MethodExited() 63 void InstrumentationListener::FieldWritten(Thread* thread, in FieldWritten() argument 72 FieldWritten(thread, this_object, method, dex_pc, field, v); in FieldWritten() 199 static void InstrumentationInstallStack(Thread* thread, void* arg) in InstrumentationInstallStack() argument 309 thread->GetThreadName(thread_name); in InstrumentationInstallStack() 316 InstallStackVisitor visitor(thread, context.get(), instrumentation_exit_pc); in InstrumentationInstallStack() 318 CHECK_EQ(visitor.dex_pcs_.size(), thread->GetInstrumentationStack()->size()); in InstrumentationInstallStack() 324 for (auto isi = thread->GetInstrumentationStack()->rbegin(), in InstrumentationInstallStack() 325 end = thread->GetInstrumentationStack()->rend(); isi != end; ++isi) { in InstrumentationInstallStack() [all …]
|
D | trace.cc | 62 explicit BuildStackTraceVisitor(Thread* thread) in BuildStackTraceVisitor() argument 63 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in BuildStackTraceVisitor() 229 static void GetSample(Thread* thread, void* arg) REQUIRES_SHARED(Locks::mutator_lock_) { in GetSample() argument 230 BuildStackTraceVisitor build_trace_visitor(thread); in GetSample() 234 the_trace->CompareAndUpdateStackTrace(thread, stack_trace); in GetSample() 237 static void ClearThreadStackTraceAndClockBase(Thread* thread, void* arg ATTRIBUTE_UNUSED) { in ClearThreadStackTraceAndClockBase() argument 238 thread->SetTraceClockBase(0); in ClearThreadStackTraceAndClockBase() 239 std::vector<ArtMethod*>* stack_trace = thread->GetStackTraceSample(); in ClearThreadStackTraceAndClockBase() 240 thread->SetStackTraceSample(nullptr); in ClearThreadStackTraceAndClockBase() 244 void Trace::CompareAndUpdateStackTrace(Thread* thread, in CompareAndUpdateStackTrace() argument [all …]
|
D | monitor.cc | 182 void Monitor::AppendToWaitSet(Thread* thread) { in AppendToWaitSet() argument 184 DCHECK(thread != nullptr); in AppendToWaitSet() 185 DCHECK(thread->GetWaitNext() == nullptr) << thread->GetWaitNext(); in AppendToWaitSet() 187 wait_set_ = thread; in AppendToWaitSet() 196 t->SetWaitNext(thread); in AppendToWaitSet() 199 void Monitor::RemoveFromWaitSet(Thread *thread) { in RemoveFromWaitSet() argument 201 DCHECK(thread != nullptr); in RemoveFromWaitSet() 205 if (wait_set_ == thread) { in RemoveFromWaitSet() 206 wait_set_ = thread->GetWaitNext(); in RemoveFromWaitSet() 207 thread->SetWaitNext(nullptr); in RemoveFromWaitSet() [all …]
|
/art/test/129-ThreadGetId/src/ |
D | Main.java | 48 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/ |
D | java_lang_Thread.cc | 46 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() 120 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeHoldsLock() local 121 return thread->HoldsLock(object.Ptr()); in Thread_nativeHoldsLock() 127 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeInterrupt() local 128 if (thread != nullptr) { in Thread_nativeInterrupt() 129 thread->Interrupt(soa.Self()); in Thread_nativeInterrupt() [all …]
|
/art/test/924-threads/ |
D | threads.cc | 43 jthread thread = nullptr; in Java_art_Test924_getCurrentThread() local 44 jvmtiError result = jvmti_env->GetCurrentThread(&thread); in Java_art_Test924_getCurrentThread() 48 return thread; in Java_art_Test924_getCurrentThread() 52 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getThreadInfo() argument 56 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in Java_art_Test924_getThreadInfo() 100 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getThreadState() argument 102 jvmtiError result = jvmti_env->GetThreadState(thread, &state); in Java_art_Test924_getThreadState() 130 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getTLS() argument 132 jvmtiError result = jvmti_env->GetThreadLocalStorage(thread, &tls); in Java_art_Test924_getTLS() 140 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread, jlong val) { in Java_art_Test924_setTLS() argument [all …]
|
/art/runtime/openjdkjvmti/include/ |
D | jvmti.h | 540 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/runtime/gc/space/ |
D | bump_pointer_space.cc | 96 size_t BumpPointerSpace::RevokeThreadLocalBuffers(Thread* thread) { in RevokeThreadLocalBuffers() argument 98 RevokeThreadLocalBuffersLocked(thread); in RevokeThreadLocalBuffers() 108 for (Thread* thread : thread_list) { in RevokeAllThreadLocalBuffers() 109 RevokeThreadLocalBuffers(thread); in RevokeAllThreadLocalBuffers() 114 void BumpPointerSpace::AssertThreadLocalBuffersAreRevoked(Thread* thread) { in AssertThreadLocalBuffersAreRevoked() argument 117 DCHECK(!thread->HasTlab()); in AssertThreadLocalBuffersAreRevoked() 128 for (Thread* thread : thread_list) { in AssertAllThreadLocalBuffersAreRevoked() 129 AssertThreadLocalBuffersAreRevoked(thread); in AssertAllThreadLocalBuffersAreRevoked() 172 for (Thread* thread : thread_list) { in GetBytesAllocated() 173 total += thread->GetThreadLocalBytesAllocated(); in GetBytesAllocated() [all …]
|
/art/runtime/openjdkjvmti/ |
D | ti_thread.h | 64 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); 66 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr); 68 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data); 69 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr); 72 jthread thread, 77 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread); 78 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread);
|
D | ti_stack.cc | 212 art::Thread** thread) in GetThread() argument 216 *thread = art::Thread::Current(); in GetThread() 217 if (*thread == nullptr) { in GetThread() 229 *thread = art::Thread::FromManagedThread(soa, java_thread); in GetThread() 230 if (*thread == nullptr) { in GetThread() 248 art::Thread* thread; in GetStackTrace() local 252 &thread); in GetStackTrace() 256 DCHECK(thread != nullptr); in GetStackTrace() 258 art::ThreadState state = thread->GetState(); in GetStackTrace() 261 thread->IsStillStarting()) { in GetStackTrace() [all …]
|
D | ti_thread.cc | 70 ScopedLocalRef<jthread> thread(self->GetJniEnv(), GetThreadObject(self)); in Post() local 74 thread.get()); in Post() 162 static art::Thread* GetNativeThreadLocked(jthread thread, in GetNativeThreadLocked() argument 166 if (thread == nullptr) { in GetNativeThreadLocked() 170 return art::Thread::FromManagedThread(soa, thread); in GetNativeThreadLocked() 174 static art::Thread* GetNativeThread(jthread thread, in GetNativeThread() argument 177 if (thread == nullptr) { in GetNativeThread() 182 return art::Thread::FromManagedThread(soa, thread); in GetNativeThread() 185 jvmtiError ThreadUtil::GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo() argument 195 art::Thread* self = GetNativeThread(thread, soa); in GetThreadInfo() [all …]
|
D | events-inl.h | 120 inline void EventHandler::DispatchClassFileLoadHookEvent(art::Thread* thread, in DispatchClassFileLoadHookEvent() argument 140 if (ShouldDispatch<kEvent>(env, thread)) { in DispatchClassFileLoadHookEvent() 183 inline void EventHandler::DispatchEvent(art::Thread* thread, Args... args) const { in DispatchEvent() argument 186 DispatchEvent<kEvent, Args...>(env, thread, args...); in DispatchEvent() 197 inline void EventHandler::DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEvent() argument 202 DispatchEvent<kEvent, JNIEnv*, Args...>(env, thread, jnienv, args...); in DispatchEvent() 211 inline void EventHandler::DispatchEvent(ArtJvmTiEnv* env, art::Thread* thread, Args... args) const { in DispatchEvent() argument 213 if (ShouldDispatch<kEvent>(env, thread)) { in DispatchEvent() 224 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kBreakpoint>(art::Thread* thread, 233 ShouldDispatch<ArtJvmtiEvent::kBreakpoint>(env, thread) && [all …]
|
D | events.h | 124 EventMask& GetEventMask(art::Thread* thread); 125 EventMask* GetEventMaskOrNull(art::Thread* thread); 126 void EnableEvent(art::Thread* thread, ArtJvmtiEvent event); 127 void DisableEvent(art::Thread* thread, ArtJvmtiEvent event); 159 art::Thread* thread, 166 inline void DispatchEvent(art::Thread* thread, Args... args) const; 172 void DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const; 176 inline void DispatchEvent(ArtJvmTiEnv* env, art::Thread* thread, Args... args) const; 189 static inline bool ShouldDispatch(ArtJvmTiEnv* env, art::Thread* thread); 201 ALWAYS_INLINE inline void DispatchClassFileLoadHookEvent(art::Thread* thread,
|
D | ti_stack.h | 50 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr); 53 jthread thread, 59 jthread thread,
|
/art/test/051-thread/src/ |
D | Main.java | 48 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/ |
D | expected.txt | 2 thread test starting 3 testThreadCapacity thread count: 128 4 testThreadDaemons starting thread 'TestDaemonThread' 17 thread test done
|
/art/test/121-simple-suspend-check/src/ |
D | Main.java | 19 SpinThread thread = new SpinThread(); in main() local 20 thread.setDaemon(true); in main() 21 thread.start(); in main()
|
/art/test/1908-suspend-native-resume-self/ |
D | expected.txt | 6 Resuming other thread 7 other thread attempting self resume 10 other thread resumed.
|
/art/test/904-object-allocation/ |
D | expected.txt | 3 Tracking on same thread 5 Tracking on same thread, not disabling tracking 7 Tracking on different thread
|
/art/test/1906-suspend-list-me-first/ |
D | expected.txt | 1 Second thread suspended before first thread suspended self!
|
D | info.txt | 1 Test jvmti SuspendThreadList with the current thread as the first thread in the list.
|