/art/test/1934-jvmti-signal-thread/ |
D | expected.txt | 2 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/ |
D | thread_list.cc | 118 bool ThreadList::Contains(Thread* thread) { in Contains() argument 119 return find(list_.begin(), list_.end(), thread) != list_.end(); in Contains() 123 for (const auto& thread : list_) { in Contains() local 124 if (thread->GetTid() == tid) { in Contains() 138 for (const auto& thread : list_) { in DumpNativeStacks() local 139 os << "DUMPING THREAD " << thread->GetTid() << "\n"; in DumpNativeStacks() 140 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 …]
|
D | instrumentation.h | 68 virtual void MethodEntered(Thread* thread, 73 virtual void MethodExited(Thread* thread, 83 virtual void MethodExited(Thread* thread, 92 virtual void MethodUnwind(Thread* thread, 99 virtual void DexPcMoved(Thread* thread, 106 virtual void FieldRead(Thread* thread, 112 virtual void FieldWritten(Thread* thread, 121 virtual void FieldWritten(Thread* thread, 130 virtual void ExceptionThrown(Thread* thread, 135 virtual void ExceptionHandled(Thread* thread, Handle<mirror::Throwable> exception_object) [all …]
|
D | trace.h | 140 void CompareAndUpdateStackTrace(Thread* thread, std::vector<ArtMethod*>* stack_trace) 144 void MethodEntered(Thread* thread, 150 void MethodExited(Thread* thread, 157 void MethodUnwind(Thread* thread, 163 void DexPcMoved(Thread* thread, 169 void FieldRead(Thread* thread, 175 void FieldWritten(Thread* thread, 182 void ExceptionThrown(Thread* thread, 185 void ExceptionHandled(Thread* thread, Handle<mirror::Throwable> exception_object) 187 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 | instrumentation.cc | 54 void InstrumentationListener::MethodExited(Thread* thread, in MethodExited() argument 63 MethodExited(thread, this_object, method, dex_pc, v); in MethodExited() 66 void InstrumentationListener::FieldWritten(Thread* thread, in FieldWritten() argument 75 FieldWritten(thread, this_object, method, dex_pc, field, v); in FieldWritten() 208 static void InstrumentationInstallStack(Thread* thread, void* arg) in InstrumentationInstallStack() argument 334 thread->GetThreadName(thread_name); in InstrumentationInstallStack() 341 InstallStackVisitor visitor(thread, context.get(), instrumentation_exit_pc); in InstrumentationInstallStack() 343 CHECK_EQ(visitor.dex_pcs_.size(), thread->GetInstrumentationStack()->size()); in InstrumentationInstallStack() 349 for (auto isi = thread->GetInstrumentationStack()->rbegin(), in InstrumentationInstallStack() 350 end = thread->GetInstrumentationStack()->rend(); isi != end; ++isi) { in InstrumentationInstallStack() [all …]
|
/art/test/1932-monitor-events-misc/ |
D | expected.txt | 2 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/ |
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/test/1931-monitor-events/ |
D | expected.txt | 2 Locker thread 1 for NamedLock[Lock testLock] contended-LOCKING NamedLock[Lock testLock] 3 Locker thread 1 for NamedLock[Lock testLock] LOCKED NamedLock[Lock testLock] 5 Locker thread 2 for NamedLock[Lock testWait] start-monitor-wait NamedLock[Lock testWait] timeout: 0 6 Locker thread 2 for NamedLock[Lock testWait] monitor-waited NamedLock[Lock testWait] timed_out: fal… 8 Locker thread 4 for NamedLock[Lock testTimedWait] start-monitor-wait NamedLock[Lock testTimedWait] … 9 Locker thread 4 for NamedLock[Lock testTimedWait] monitor-waited NamedLock[Lock testTimedWait] time… 12 Locker thread 6 for NamedLock[Lock testTimedWaitTimeout] start-monitor-wait NamedLock[Lock testTime… 13 Locker thread 6 for NamedLock[Lock testTimedWaitTimeout] monitor-waited NamedLock[Lock testTimedWai… 16 Unlocked wait thread: start-monitor-wait NamedLock[Lock testUnlockedWait] timeout: 0 20 Locker thread 7 for NamedLock[Lock testIllegalWait] start-monitor-wait NamedLock[Lock testIllegalWa… [all …]
|
/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() 122 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeHoldsLock() local 123 return thread->HoldsLock(object.Ptr()); in Thread_nativeHoldsLock() 129 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeInterrupt() local 130 if (thread != nullptr) { in Thread_nativeInterrupt() 131 thread->Interrupt(soa.Self()); in Thread_nativeInterrupt() [all …]
|
D | dalvik_system_VMStack.cc | 61 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/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/openjdkjvmti/ |
D | events-inl.h | 188 inline std::vector<impl::EventHandlerFunc<kEvent>> EventHandler::CollectEvents(art::Thread* thread, in CollectEvents() argument 190 art::ReaderMutexLock mu(thread, envs_lock_); in CollectEvents() 193 if (ShouldDispatch<kEvent>(env, thread, args...)) { in CollectEvents() 204 inline void EventHandler::DispatchClassFileLoadHookEvent(art::Thread* thread, in DispatchClassFileLoadHookEvent() argument 214 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchClassFileLoadHookEvent() 221 CollectEvents<kEvent>(thread, in DispatchClassFileLoadHookEvent() 268 inline void EventHandler::DispatchEvent(art::Thread* thread, Args... args) const { in DispatchEvent() argument 269 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEvent() 274 DCHECK(thread == nullptr || !thread->IsExceptionPending()); in DispatchEvent() 275 std::vector<impl::EventHandlerFunc<kEvent>> events = CollectEvents<kEvent>(thread, args...); in DispatchEvent() [all …]
|
D | ti_thread.h | 72 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); 74 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr); 76 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data); 77 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr); 80 jthread thread, 85 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread); 86 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread); 105 static bool GetAliveNativeThread(jthread thread, 114 static bool GetNativeThread(jthread thread,
|
D | ti_stack.h | 52 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr); 55 jthread thread, 61 jthread thread, 74 jthread thread, 79 jthread thread, 83 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth);
|
D | ti_stack.cc | 226 art::Thread* thread; in GetStackTrace() local 228 if (!ThreadUtil::GetAliveNativeThread(java_thread, soa, &thread, &thread_error)) { in GetStackTrace() 232 DCHECK(thread != nullptr); in GetStackTrace() 234 art::ThreadState state = thread->GetState(); in GetStackTrace() 235 if (state == art::ThreadState::kStarting || thread->IsStillStarting()) { in GetStackTrace() 261 if (!thread->RequestSynchronousCheckpoint(&closure)) { in GetStackTrace() 272 if (!thread->RequestSynchronousCheckpoint(&closure)) { in GetStackTrace() 290 void Run(art::Thread* thread) OVERRIDE in Run() 294 Work(thread, self); in Run() 298 void Work(art::Thread* thread, art::Thread* self) in Work() [all …]
|
/art/test/1922-owned-monitors-info/ |
D | expected.txt | 1 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/ |
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/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/924-threads/ |
D | threads.cc | 83 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/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/1912-get-set-local-primitive/ |
D | expected.txt | 1 …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 …nning public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetInt" on remote thread. 16 …ning public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetLong" on remote thread. 19 …ing public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetFloat" on remote thread. 22 …ng public static void art.Test1912.IntMethod(java.lang.Runnable) with "SetDouble" on remote thread. 25 …ning public static void art.Test1912.LongMethod(java.lang.Runnable) with "GetInt" on remote thread. 28 …ing public static void art.Test1912.LongMethod(java.lang.Runnable) with "GetLong" on remote thread. [all …]
|
/art/test/1936-thread-end-events/ |
D | expected.txt | 2 Thread: test-thread 9 Thread: test-thread 16 Thread: test-thread 23 Thread: test-thread 30 Thread: test-thread 37 Thread: test-thread
|
/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/1913-get-set-local-objects/ |
D | expected.txt | 1 …lic static void art.Test1913.ObjectMethod(java.lang.Runnable) with "GetGetObject" on remote thread. 4 …g public static void art.Test1913.ObjectMethod(java.lang.Runnable) with "SetNull" on remote thread. 7 …ic static void art.Test1913.ObjectMethod(java.lang.Runnable) with "SetTestClass1" on remote thread. 10 …static void art.Test1913.ObjectMethod(java.lang.Runnable) with "SetTestClass1ext" on remote thread. 13 …ic static void art.Test1913.ObjectMethod(java.lang.Runnable) with "SetTestClass2" on remote thread. 16 …tatic void art.Test1913.ObjectMethod(java.lang.Runnable) with "SetTestClass2impl" on remote thread. 19 … static void art.Test1913.InterfaceMethod(java.lang.Runnable) with "GetGetObject" on remote thread. 22 …ublic static void art.Test1913.InterfaceMethod(java.lang.Runnable) with "SetNull" on remote thread. 25 …static void art.Test1913.InterfaceMethod(java.lang.Runnable) with "SetTestClass1" on remote thread. 28 …tic void art.Test1913.InterfaceMethod(java.lang.Runnable) with "SetTestClass1ext" on remote thread. [all …]
|