Home
last modified time | relevance | path

Searched refs:jthread (Results 1 – 25 of 50) sorted by relevance

12

/art/openjdkjvmti/
Dti_thread.h68 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr);
70 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr);
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);
90 const jthread* threads,
[all …]
Dti_stack.h52 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);
Dti_object.cc90 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()
Dti_method.h90 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,
Dti_thread.cc66 jthread GetThreadObject(art::Thread* self) REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetThreadObject()
70 return self->GetJniEnv()->AddLocalReference<jthread>(self->GetPeer()); in GetThreadObject()
76 ScopedLocalRef<jthread> thread(self->GetJniEnv(), GetThreadObject(self)); in Post()
152 jvmtiError ThreadUtil::GetCurrentThread(jvmtiEnv* env ATTRIBUTE_UNUSED, jthread* thread_ptr) { in GetCurrentThread()
157 jthread thread_peer; in GetCurrentThread()
161 thread_peer = soa.AddLocalReference<jthread>(self->GetPeer()); in GetCurrentThread()
169 bool ThreadUtil::GetNativeThread(jthread thread, in GetNativeThread()
185 bool ThreadUtil::GetAliveNativeThread(jthread thread, in GetAliveNativeThread()
199 jvmtiError ThreadUtil::GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo()
503 jthread thread, in GetThreadState()
[all …]
DOpenjdkJvmTi.cc133 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState()
138 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread()
143 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads()
148 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread()
156 const jthread* request_list, in SuspendThreadList()
163 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread) { in ResumeThread()
171 const jthread* request_list, in ResumeThreadList()
178 static jvmtiError StopThread(jvmtiEnv* env, jthread thread, jobject exception) { in StopThread()
184 static jvmtiError InterruptThread(jvmtiEnv* env, jthread thread) { in InterruptThread()
190 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo()
[all …]
Dti_phase.cc54 inline static jthread GetCurrentJThread() { in GetCurrentJThread()
56 return soa.AddLocalReference<jthread>(soa.Self()->GetPeer()); in GetCurrentJThread()
76 ScopedLocalRef<jthread> thread(GetJniEnv(), GetCurrentJThread()); in NextRuntimePhase()
/art/test/ti-agent/
Dsuspension_helper.cc29 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()
Dlocals_helper.cc48 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 …]
Dthreads_helper.cc29 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()
Dexceptions_helper.cc39 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()
Dmonitors_helper.cc31 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()
Dtrace_helper.cc30 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 …]
Dframe_pop_helper.cc36 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()
Dstack_trace_helper.cc31 JNIEnv* env, jclass, jthread thr) { in Java_art_StackTrace_GetStackDepth()
39 jthread thr) { in Java_art_StackTrace_nativeGetStackTrace()
/art/openjdkjvmti/include/
Djvmti.h72 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/924-threads/
Dthreads.cc81 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/1950-unprepared-transform/
Dunprepared_transform.cc42 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/test/1926-missed-frame-pop/
Dframe_pop_missed.cc38 JNIEnv* env, jclass, jthread thr) { in Java_art_Test1926_disableFramePop()
46 JNIEnv* env, jclass, jthread thr) { in Java_art_Test1926_reenableFramePop()
/art/test/1939-proxy-frames/
Dlocal_instance.cc38 jthread thr, in Java_art_Test1939_GetFrameMethod()
56 jthread thr, in Java_art_Test1939_GetFrameLocation()
/art/test/931-agent-thread/
Dagent_thread.cc40 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/
DOpenjdkJvm.cc348 JNIEXPORT void JVM_StartThread(JNIEnv* env, jobject jthread, jlong stack_size, jboolean daemon) { in JVM_StartThread() argument
349 art::Thread::CreateNativeThread(env, jthread, stack_size, daemon == JNI_TRUE); in JVM_StartThread()
352 JNIEXPORT void JVM_SetThreadPriority(JNIEnv* env, jobject jthread, jint prio) { in JVM_SetThreadPriority() argument
355 art::Thread* thread = art::Thread::FromManagedThread(soa, jthread); in JVM_SetThreadPriority()
377 JNIEXPORT void JVM_Interrupt(JNIEnv* env, jobject jthread) { in JVM_Interrupt() argument
380 art::Thread* thread = art::Thread::FromManagedThread(soa, jthread); in JVM_Interrupt()
386 JNIEXPORT jboolean JVM_IsInterrupted(JNIEnv* env, jobject jthread, jboolean clearInterrupted) { in JVM_IsInterrupted() argument
392 art::Thread* thread = art::Thread::FromManagedThread(soa, jthread); in JVM_IsInterrupted()
407 JNIEXPORT void JVM_SetNativeThreadName(JNIEnv* env, jobject jthread, jstring java_name) { in JVM_SetNativeThreadName() argument
411 if (soa.Decode<art::mirror::Object>(jthread) == soa.Self()->GetPeer()) { in JVM_SetNativeThreadName()
[all …]
/art/test/1909-per-agent-tls/
Dagent_tls.cc30 jthread thr, in Java_art_Test1909_setTLS()
41 jthread thr) { in Java_art_Test1909_getTLS()
/art/test/911-get-stack-trace/
Dstack_trace.cc129 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint start, jint max) { in Java_art_PrintThread_getStackTrace()
174 std::unique_ptr<jthread[]> threads(new jthread[thread_count]); in Java_art_ThreadListTraces_getThreadListStackTraces()
208 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread) { in Java_art_Frames_getFrameCount()
218 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint depth) { in Java_art_Frames_getFrameLocation()
/art/test/912-classes/
Dclasses.cc299 jthread thread, in ClassLoadCallback()
321 jthread thread, in ClassPrepareCallback()
343 static std::string GetThreadName(jvmtiEnv* jenv, JNIEnv* jni_env, jthread thread) { in GetThreadName()
368 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jboolean enable, jthread thread) { in Java_art_Test912_enableClassLoadPreparePrintEvents()
383 static jthread RunEventThread(const std::string& name, in RunEventThread()
414 static void JoinTread(JNIEnv* env, jthread thr) { in JoinTread()
452 jthread thread ATTRIBUTE_UNUSED, in ClassLoadCallback()
460 agent_thread_ = static_cast<jthread>(jni_env->NewGlobalRef(RunEventThread<jobject>( in ClassLoadCallback()
473 jthread thread ATTRIBUTE_UNUSED, in ClassPrepareCallback()
557 static jthread agent_thread_;
[all …]

12