/art/test/1934-jvmti-signal-thread/ |
D | expected-stdout.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 …]
|
D | Android.bp | 3 // Build rules for ART run-test `1934-jvmti-signal-thread`. 16 name: "art-run-test-1934-jvmti-signal-thread", 21 ":art-run-test-1934-jvmti-signal-thread-expected-stdout", 22 ":art-run-test-1934-jvmti-signal-thread-expected-stderr", 28 name: "art-run-test-1934-jvmti-signal-thread-expected-stdout", 29 out: ["art-run-test-1934-jvmti-signal-thread-expected-stdout.txt"], 36 name: "art-run-test-1934-jvmti-signal-thread-expected-stderr", 37 out: ["art-run-test-1934-jvmti-signal-thread-expected-stderr.txt"],
|
/art/runtime/ |
D | thread_list.cc | 114 bool ThreadList::Contains(Thread* thread) { in Contains() argument 115 return find(list_.begin(), list_.end(), thread) != list_.end(); in Contains() 125 for (const auto& thread : list_) { in DumpNativeStacks() local 126 os << "DUMPING THREAD " << thread->GetTid() << "\n"; in DumpNativeStacks() 127 DumpNativeStack(os, unwinder, thread->GetTid(), "\t"); in DumpNativeStacks() 170 Thread* thread; in DumpUnattachedThreads() local 173 thread = FindThreadByTid(tid); in DumpUnattachedThreads() 175 if (thread == nullptr) { in DumpUnattachedThreads() 200 void Run(Thread* thread) override { in Run() argument 209 dump_order = thread->Dump(local_os, unwinder_, dump_native_stack_); in Run() [all …]
|
/art/test/1932-monitor-events-misc/ |
D | expected-stdout.jvm.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 …]
|
D | expected-stdout.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/1969-force-early-return-void/ |
D | expected-stdout.no-jvm.txt | 3 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 …]
|
D | expected-stdout.jvm.txt | 3 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 …]
|
D | expected-stdout.txt | 3 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/1931-monitor-events/ |
D | expected-stdout.jvm.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] 6 Locker thread 2 for NamedLock[Lock testWait] start-monitor-wait NamedLock[Lock testWait] timeout: 0 7 Locker thread 2 for NamedLock[Lock testWait] monitor-waited NamedLock[Lock testWait] timed_out: fal… 9 Locker thread 4 for NamedLock[Lock testTimedWait] start-monitor-wait NamedLock[Lock testTimedWait] … 10 Locker thread 4 for NamedLock[Lock testTimedWait] monitor-waited NamedLock[Lock testTimedWait] time… 13 Locker thread 6 for NamedLock[Lock testTimedWaitTimeout] start-monitor-wait NamedLock[Lock testTime… 14 Locker thread 6 for NamedLock[Lock testTimedWaitTimeout] monitor-waited NamedLock[Lock testTimedWai… 17 Unlocked wait thread: start-monitor-wait NamedLock[Lock testUnlockedWait] timeout: 0 21 Locker thread 7 for NamedLock[Lock testIllegalWait] start-monitor-wait NamedLock[Lock testIllegalWa… [all …]
|
D | expected-stdout.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] 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/openjdkjvmti/ |
D | events-inl.h | 193 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 …]
|
/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() 77 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeGetStatus() local 78 if (thread != nullptr) { in Thread_nativeGetStatus() 79 internal_thread_state = thread->GetState(); in Thread_nativeGetStatus() 125 Thread* thread = soa.Self(); in Thread_holdsLock() local 126 return thread->HoldsLock(object); in Thread_holdsLock() 132 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_interrupt0() local 133 if (thread != nullptr) { in Thread_interrupt0() 134 thread->Interrupt(soa.Self()); in Thread_interrupt0() [all …]
|
D | dalvik_system_VMStack.cc | 52 Thread* thread = thread_list->SuspendThreadByPeer(peer, SuspendReason::kInternal); in GetThreadStack() local 53 if (thread != nullptr) { in GetThreadStack() 57 if (!runtime->GetHeap()->GetTaskProcessor()->IsRunningThread(thread, /*wait=*/true)) { in GetThreadStack() 61 trace = fn(thread, soa); in GetThreadStack() 68 bool resumed = thread_list->Resume(thread, SuspendReason::kInternal); in GetThreadStack() 77 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& soaa) in VMStack_fillStackTraceElements() 79 return thread->CreateInternalStackTrace(soaa); in VMStack_fillStackTraceElements() 104 explicit ClosestUserClassLoaderVisitor(Thread* thread) in VMStack_getClosestUserClassLoader() 105 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in VMStack_getClosestUserClassLoader() 144 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& 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/test/051-thread/ |
D | Android.bp | 3 // Build rules for ART run-test `051-thread`. 16 name: "art-run-test-051-thread", 21 ":art-run-test-051-thread-expected-stdout", 22 ":art-run-test-051-thread-expected-stderr", 28 name: "art-run-test-051-thread-expected-stdout", 29 out: ["art-run-test-051-thread-expected-stdout.txt"], 36 name: "art-run-test-051-thread-expected-stderr", 37 out: ["art-run-test-051-thread-expected-stderr.txt"],
|
/art/test/1971-multi-force-early-return/ |
D | expected-stdout.txt | 1 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/test/1922-owned-monitors-info/ |
D | expected-stdout.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/test/129-ThreadGetId/src/ |
D | Main.java | 96 for (Thread thread : array) { in getHeapTaskDaemon() 97 if (thread.getName().equals("HeapTaskDaemon") && in getHeapTaskDaemon() 98 thread.getState() != Thread.State.NEW) { in getHeapTaskDaemon() 99 return thread; in getHeapTaskDaemon() 115 Thread thread = pair.getKey(); in test_getStackTraces() local 118 if (thread == heapDaemon) { in test_getStackTraces() 119 System.out.println(thread.getName() + " depth " + pair.getValue().length); in test_getStackTraces() 130 for (Thread thread : stMap.keySet()) { in test_getId() 131 if (thread.getId() <= 0) { in test_getId() 132 System.out.println("thread's ID is not positive: " + thread.getName()); in test_getId() [all …]
|
/art/test/2037-thread-name-inherit/ |
D | Android.bp | 3 // Build rules for ART run-test `2037-thread-name-inherit`. 16 name: "art-run-test-2037-thread-name-inherit", 21 ":art-run-test-2037-thread-name-inherit-expected-stdout", 22 ":art-run-test-2037-thread-name-inherit-expected-stderr", 28 name: "art-run-test-2037-thread-name-inherit-expected-stdout", 29 out: ["art-run-test-2037-thread-name-inherit-expected-stdout.txt"], 36 name: "art-run-test-2037-thread-name-inherit-expected-stderr", 37 out: ["art-run-test-2037-thread-name-inherit-expected-stderr.txt"],
|
/art/test/2233-metrics-background-thread/ |
D | Android.bp | 3 // Build rules for ART run-test `2233-metrics-background-thread`. 16 name: "art-run-test-2233-metrics-background-thread", 21 ":art-run-test-2233-metrics-background-thread-expected-stdout", 22 ":art-run-test-2233-metrics-background-thread-expected-stderr", 28 name: "art-run-test-2233-metrics-background-thread-expected-stdout", 29 out: ["art-run-test-2233-metrics-background-thread-expected-stdout.txt"], 36 name: "art-run-test-2233-metrics-background-thread-expected-stderr", 37 out: ["art-run-test-2233-metrics-background-thread-expected-stderr.txt"],
|
/art/test/202-thread-oome/ |
D | Android.bp | 3 // Build rules for ART run-test `202-thread-oome`. 16 name: "art-run-test-202-thread-oome", 21 ":art-run-test-202-thread-oome-expected-stdout", 22 ":art-run-test-202-thread-oome-expected-stderr", 28 name: "art-run-test-202-thread-oome-expected-stdout", 29 out: ["art-run-test-202-thread-oome-expected-stdout.txt"], 36 name: "art-run-test-202-thread-oome-expected-stderr", 37 out: ["art-run-test-202-thread-oome-expected-stderr.txt"],
|
/art/test/931-agent-thread/ |
D | Android.bp | 3 // Build rules for ART run-test `931-agent-thread`. 16 name: "art-run-test-931-agent-thread", 21 ":art-run-test-931-agent-thread-expected-stdout", 22 ":art-run-test-931-agent-thread-expected-stderr", 28 name: "art-run-test-931-agent-thread-expected-stdout", 29 out: ["art-run-test-931-agent-thread-expected-stdout.txt"], 36 name: "art-run-test-931-agent-thread-expected-stderr", 37 out: ["art-run-test-931-agent-thread-expected-stderr.txt"],
|
/art/test/720-thread-priority/ |
D | Android.bp | 3 // Build rules for ART run-test `720-thread-priority`. 16 name: "art-run-test-720-thread-priority", 21 ":art-run-test-720-thread-priority-expected-stdout", 22 ":art-run-test-720-thread-priority-expected-stderr", 28 name: "art-run-test-720-thread-priority-expected-stdout", 29 out: ["art-run-test-720-thread-priority-expected-stdout.txt"], 36 name: "art-run-test-720-thread-priority-expected-stderr", 37 out: ["art-run-test-720-thread-priority-expected-stderr.txt"],
|
/art/test/1936-thread-end-events/ |
D | Android.bp | 3 // Build rules for ART run-test `1936-thread-end-events`. 16 name: "art-run-test-1936-thread-end-events", 21 ":art-run-test-1936-thread-end-events-expected-stdout", 22 ":art-run-test-1936-thread-end-events-expected-stderr", 28 name: "art-run-test-1936-thread-end-events-expected-stdout", 29 out: ["art-run-test-1936-thread-end-events-expected-stdout.txt"], 36 name: "art-run-test-1936-thread-end-events-expected-stderr", 37 out: ["art-run-test-1936-thread-end-events-expected-stderr.txt"],
|
/art/test/1962-multi-thread-events/ |
D | Android.bp | 3 // Build rules for ART run-test `1962-multi-thread-events`. 16 name: "art-run-test-1962-multi-thread-events", 21 ":art-run-test-1962-multi-thread-events-expected-stdout", 22 ":art-run-test-1962-multi-thread-events-expected-stderr", 28 name: "art-run-test-1962-multi-thread-events-expected-stdout", 29 out: ["art-run-test-1962-multi-thread-events-expected-stdout.txt"], 36 name: "art-run-test-1962-multi-thread-events-expected-stderr", 37 out: ["art-run-test-1962-multi-thread-events-expected-stderr.txt"],
|