/art/openjdkjvmti/ |
D | ti_thread.h | 94 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr); 96 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr); 98 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); 100 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr); 102 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data); 103 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr); 106 jthread thread, 111 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread); 112 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread); 116 const jthread* threads, [all …]
|
D | ti_stack.h | 52 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr); 55 jthread thread, 61 jthread thread, 69 const jthread* thread_list, 74 jthread thread, 79 jthread thread, 83 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth); 85 static jvmtiError PopFrame(jvmtiEnv* env, jthread thread);
|
D | ti_object.cc | 90 std::vector<jthread> wait; in GetObjectMonitorUsage() 91 std::vector<jthread> notify_wait; in GetObjectMonitorUsage() 100 jni->AddLocalReference<jthread>(info.owner_->GetPeerFromOtherThread()) : nullptr; in GetObjectMonitorUsage() 105 notify_wait.push_back(jni->AddLocalReference<jthread>(thd->GetPeerFromOtherThread())); in GetObjectMonitorUsage() 106 wait.push_back(jni->AddLocalReference<jthread>(thd->GetPeerFromOtherThread())); in GetObjectMonitorUsage() 113 wait.push_back(jni->AddLocalReference<jthread>(thd->GetPeerFromOtherThread())); in GetObjectMonitorUsage() 122 wait.size() * sizeof(jthread), in GetObjectMonitorUsage() 129 notify_wait.size() * sizeof(jthread), in GetObjectMonitorUsage()
|
D | ti_method.h | 90 static jvmtiError SetLocalVariable(jvmtiEnv* env, jthread thread, jint depth, jint slot, T data); 93 static jvmtiError GetLocalVariable(jvmtiEnv* env, jthread thread, jint depth, jint slot, T* data); 95 static jvmtiError GetLocalInstance(jvmtiEnv* env, jthread thread, jint depth, jobject* data); 99 jthread thread, 105 jthread thread,
|
D | OpenjdkJvmTi.cc | 143 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState() 148 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread() 153 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads() 158 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread() 166 const jthread* request_list, in SuspendThreadList() 173 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread) { in ResumeThread() 181 const jthread* request_list, in ResumeThreadList() 188 static jvmtiError StopThread(jvmtiEnv* env, jthread thread, jobject exception) { in StopThread() 194 static jvmtiError InterruptThread(jvmtiEnv* env, jthread thread) { in InterruptThread() 200 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo() [all …]
|
D | ti_thread.cc | 94 jthread GetThreadObject(art::Thread* self) REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetThreadObject() 98 return self->GetJniEnv()->AddLocalReference<jthread>(self->GetPeer()); in GetThreadObject() 104 ScopedLocalRef<jthread> thread(self->GetJniEnv(), GetThreadObject(self)); in Post() 211 jvmtiError ThreadUtil::GetCurrentThread(jvmtiEnv* env ATTRIBUTE_UNUSED, jthread* thread_ptr) { in GetCurrentThread() 216 jthread thread_peer; in GetCurrentThread() 220 thread_peer = soa.AddLocalReference<jthread>(self->GetPeer()); in GetCurrentThread() 228 bool ThreadUtil::GetNativeThread(jthread thread, in GetNativeThread() 244 bool ThreadUtil::GetAliveNativeThread(jthread thread, in GetAliveNativeThread() 258 jvmtiError ThreadUtil::GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo() 564 jthread thread, in GetThreadState() [all …]
|
/art/test/ti-agent/ |
D | suspension_helper.cc | 29 JNIEnv* env, jclass, jthread thr) { in Java_art_Suspension_isSuspended() 37 static std::vector<jthread> CopyToVector(JNIEnv* env, jobjectArray thrs) { in CopyToVector() 39 std::vector<jthread> ret; in CopyToVector() 41 ret.push_back(reinterpret_cast<jthread>(env->GetObjectArrayElement(thrs, i))); in CopyToVector() 50 std::vector<jthread> threads(CopyToVector(env, thr)); in Java_art_Suspension_resumeList() 71 std::vector<jthread> threads(CopyToVector(env, thrs)); in Java_art_Suspension_suspendList() 88 extern "C" JNIEXPORT void JNICALL Java_art_Suspension_resume(JNIEnv* env, jclass, jthread thr) { in Java_art_Suspension_resume() 92 extern "C" JNIEXPORT void JNICALL Java_art_Suspension_suspend(JNIEnv* env, jclass, jthread thr) { in Java_art_Suspension_suspend()
|
D | locals_helper.cc | 48 jthread t, in Java_art_Locals_SetLocalVariableObject() 57 jthread t, in Java_art_Locals_SetLocalVariableDouble() 66 jthread t, in Java_art_Locals_SetLocalVariableFloat() 75 jthread t, in Java_art_Locals_SetLocalVariableLong() 84 jthread t, in Java_art_Locals_SetLocalVariableInt() 93 jthread t, in Java_art_Locals_GetLocalVariableDouble() 103 jthread t, in Java_art_Locals_GetLocalVariableFloat() 113 jthread t, in Java_art_Locals_GetLocalVariableLong() 123 jthread t, in Java_art_Locals_GetLocalVariableInt() 133 jthread t, in Java_art_Locals_GetLocalInstance() [all …]
|
D | threads_helper.cc | 29 extern "C" JNIEXPORT void Java_art_Threads_interruptThread(JNIEnv* env, jclass, jthread thr) { in Java_art_Threads_interruptThread() 35 jthread thr, in Java_art_Threads_stopThread()
|
D | exceptions_helper.cc | 39 jthread thread, in exceptionCB() 80 jthread thread, in exceptionCatchCB() 161 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thr) { in Java_art_Exceptions_enableExceptionCatchEvent() 170 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thr) { in Java_art_Exceptions_enableExceptionEvent() 179 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thr) { in Java_art_Exceptions_disableExceptionCatchEvent() 188 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thr) { in Java_art_Exceptions_disableExceptionEvent()
|
D | monitors_helper.cc | 31 JNIEnv* env, jclass, jthread thr) { in Java_art_Monitors_getCurrentContendedMonitor() 83 jthread thr, in monitorEnterCB() 97 jthread thr, in monitorEnteredCB() 111 jthread thr, in monitorWaitCB() 126 jthread thr, in monitorWaitedCB() 149 jthread thr) { in Java_art_Monitors_setupMonitorEvents()
|
D | trace_helper.cc | 30 static bool IsInCallback(JNIEnv* env, jvmtiEnv *jvmti, jthread thr) { in IsInCallback() 45 static void SetInCallback(JNIEnv* env, jvmtiEnv *jvmti, jthread thr, bool val) { in SetInCallback() 57 ScopedCallbackState(JNIEnv* jnienv, jvmtiEnv* env, jthread thr) in ScopedCallbackState() 70 jthread thr_; 100 jthread thread) { in threadStartCB() 115 jthread thread) { in threadEndCB() 131 jthread thread, in singleStepCB() 159 jthread thr, in fieldAccessCB() 195 jthread thr, in fieldModificationCB() 240 jthread thr, in methodExitCB() [all …]
|
D | frame_pop_helper.cc | 36 jthread thr, in framePopCB() 62 JNIEnv* env, jclass, jclass klass, jobject notify_method, jthread thr) { in Java_art_FramePop_enableFramePopEvent() 125 JNIEnv* env, jclass, jthread thr, jint depth) { in Java_art_FramePop_notifyFramePop()
|
/art/openjdkjvmti/include/ |
D | jvmti.h | 72 typedef jobject jthread; typedef 540 jthread thread; 610 jthread owner; 613 jthread* waiters; 615 jthread* notify_waiters; 723 jthread thread, 742 jthread thread, 748 jthread thread, 777 jthread thread, 787 jthread thread, [all …]
|
/art/test/904-object-allocation/ |
D | tracking.cc | 79 ScopedGlobalRef<jthread> thr_; 87 jthread thread, in ObjectAllocated() 100 ScopedGlobalRef<jthread>(jni_env, thread)}); in ObjectAllocated() 115 JNIEnv* env, jclass, jthread thread, jboolean enable) { in Java_art_Test904_enableAllocationTracking() 127 std::vector<jthread> thread_lst; in Java_art_Test904_getTrackingEventMessages() 132 thread_lst.push_back(reinterpret_cast<jthread>(env->GetObjectArrayElement(threads, i))); in Java_art_Test904_getTrackingEventMessages() 135 ScopedLocalRef<jthread> thr(env, ev.thr_.Get(env)); in Java_art_Test904_getTrackingEventMessages() 136 for (jthread req_thread : thread_lst) { in Java_art_Test904_getTrackingEventMessages()
|
/art/test/1950-unprepared-transform/ |
D | unprepared_transform.cc | 42 jthread thr ATTRIBUTE_UNUSED, in ClassLoadCallback() 48 JNIEnv* env, jclass main ATTRIBUTE_UNUSED, jthread thr) { in Java_Main_clearClassLoadHook() 56 JNIEnv* env, jclass main, jthread thr) { in Java_Main_setupClassLoadHook()
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 38 static jthread GetJitThread() { in GetJitThread() 49 return soa.AddLocalReference<jthread>( in GetJitThread() 55 jthread curthread ATTRIBUTE_UNUSED) { in VmInitCb() 56 jthread jit_thread = GetJitThread(); in VmInitCb() 76 jthread thr ATTRIBUTE_UNUSED, in ClassPrepareJit() 130 jthread thr = nullptr; in Agent_OnAttach()
|
/art/test/924-threads/ |
D | threads.cc | 81 extern "C" JNIEXPORT jthread JNICALL Java_art_Test924_getCurrentThread( in Java_art_Test924_getCurrentThread() 83 jthread thread = nullptr; in Java_art_Test924_getCurrentThread() 92 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getThreadInfo() 140 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getThreadState() 152 jthread* threads; in Java_art_Test924_getAllThreads() 170 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Test924_getTLS() 180 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread, jlong val) { in Java_art_Test924_setTLS() 191 jthread thread, in ThreadEvent() 215 jthread thread) { in ThreadStart() 221 jthread thread) { in ThreadEnd()
|
/art/test/1926-missed-frame-pop/ |
D | frame_pop_missed.cc | 38 JNIEnv* env, jclass, jthread thr) { in Java_art_Test1926_disableFramePop() 46 JNIEnv* env, jclass, jthread thr) { in Java_art_Test1926_reenableFramePop()
|
/art/test/1953-pop-frame/ |
D | pop_frame.cc | 88 jthread thr, in cbSingleStep() 106 jthread thr, in cbExceptionCatch() 125 jthread thr, in cbException() 146 jthread thr, in cbMethodEntry() 163 jthread thr, in cbMethodExit() 182 jthread thr, in cbFieldModification() 206 jthread thr, in cbFieldAccess() 228 jthread thr, in cbBreakpointHit() 256 jthread thr, in cbFramePop() 271 jthread thr, in cbClassLoadOrPrepare() [all …]
|
/art/test/1939-proxy-frames/ |
D | local_instance.cc | 38 jthread thr, in Java_art_Test1939_GetFrameMethod() 56 jthread thr, in Java_art_Test1939_GetFrameLocation()
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.cc | 49 static jthread the_thread; 58 static void JNICALL ThreadStartCallback(jvmtiEnv *jvmti, JNIEnv* env, jthread thread) { in ThreadStartCallback() 72 jthread cur; in Test1919AgentThread() 99 the_thread = static_cast<jthread>(env->NewGlobalRef(thread.get())); in CreateAgentThread() 108 static void JNICALL VMInitCallback(jvmtiEnv *jvmti, JNIEnv* env, jthread thread) { in VMInitCallback() 196 extern "C" JNIEXPORT jthread JNICALL Java_art_Test1919_getTestingThread(JNIEnv*, jclass) { in Java_art_Test1919_getTestingThread()
|
/art/test/931-agent-thread/ |
D | agent_thread.cc | 40 jthread main_thread; 51 jthread this_thread; in AgentMain() 75 jthread* threads; in AgentMain() 140 jthread main_thread; in Java_art_Test931_testAgentThread()
|
/art/openjdkjvm/ |
D | OpenjdkJvm.cc | 346 JNIEXPORT void JVM_StartThread(JNIEnv* env, jobject jthread, jlong stack_size, jboolean daemon) { in JVM_StartThread() argument 347 art::Thread::CreateNativeThread(env, jthread, stack_size, daemon == JNI_TRUE); in JVM_StartThread() 350 JNIEXPORT void JVM_SetThreadPriority(JNIEnv* env, jobject jthread, jint prio) { in JVM_SetThreadPriority() argument 353 art::Thread* thread = art::Thread::FromManagedThread(soa, jthread); in JVM_SetThreadPriority() 375 JNIEXPORT void JVM_Interrupt(JNIEnv* env, jobject jthread) { in JVM_Interrupt() argument 378 art::Thread* thread = art::Thread::FromManagedThread(soa, jthread); in JVM_Interrupt() 384 JNIEXPORT jboolean JVM_IsInterrupted(JNIEnv* env, jobject jthread, jboolean clearInterrupted) { in JVM_IsInterrupted() argument 390 art::Thread* thread = art::Thread::FromManagedThread(soa, jthread); in JVM_IsInterrupted() 405 JNIEXPORT void JVM_SetNativeThreadName(JNIEnv* env, jobject jthread, jstring java_name) { in JVM_SetNativeThreadName() argument 409 if (soa.Decode<art::mirror::Object>(jthread) == soa.Self()->GetPeer()) { in JVM_SetNativeThreadName() [all …]
|
/art/test/1909-per-agent-tls/ |
D | agent_tls.cc | 30 jthread thr, in Java_art_Test1909_setTLS() 41 jthread thr) { in Java_art_Test1909_getTLS()
|