Home
last modified time | relevance | path

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

123

/art/openjdkjvmti/
Dti_thread.h98 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr);
100 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr);
102 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr);
104 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr);
106 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data);
107 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr);
110 jthread thread,
115 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread);
116 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread);
120 const jthread* threads,
[all …]
Dti_stack.h53 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr);
56 jthread thread,
62 jthread thread,
70 const jthread* thread_list,
75 jthread thread,
80 jthread thread,
84 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth);
86 static jvmtiError PopFrame(jvmtiEnv* env, jthread thread);
90 jvmtiEnv* env, EventHandler* event_handler, jthread thread, T value);
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,
DOpenjdkJvmTi.cc145 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState()
150 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread()
155 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads()
160 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread()
168 const jthread* request_list, in SuspendThreadList()
175 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread) { in ResumeThread()
183 const jthread* request_list, in ResumeThreadList()
190 static jvmtiError StopThread(jvmtiEnv* env, jthread thread, jobject exception) { in StopThread()
196 static jvmtiError InterruptThread(jvmtiEnv* env, jthread thread) { in InterruptThread()
202 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo()
[all …]
Dti_thread.cc94 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()
213 jvmtiError ThreadUtil::GetCurrentThread(jvmtiEnv* env ATTRIBUTE_UNUSED, jthread* thread_ptr) { in GetCurrentThread()
218 jthread thread_peer; in GetCurrentThread()
222 thread_peer = soa.AddLocalReference<jthread>(self->GetPeer()); in GetCurrentThread()
230 bool ThreadUtil::GetNativeThread(jthread thread, in GetNativeThread()
247 bool ThreadUtil::GetAliveNativeThread(jthread thread, in GetAliveNativeThread()
261 jvmtiError ThreadUtil::GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo()
567 jthread thread, in GetThreadState()
[all …]
/art/test/ti-agent/
Dearly_return_helper.cc30 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr) { in Java_art_NonStandardExit_popFrame()
35 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr, jfloat val) { in Java_art_NonStandardExit_forceEarlyReturnFloat()
40 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr, jdouble val) { in Java_art_NonStandardExit_forceEarlyReturnDouble()
45 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr, jlong val) { in Java_art_NonStandardExit_forceEarlyReturnLong()
50 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr, jint val) { in Java_art_NonStandardExit_forceEarlyReturnInt()
55 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr) { in Java_art_NonStandardExit_forceEarlyReturnVoid()
60 JNIEnv* env, jclass k ATTRIBUTE_UNUSED, jthread thr, jobject val) { in Java_art_NonStandardExit_forceEarlyReturnObject()
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 …]
Dsuspend_event_helper.cc99 cbSingleStep(jvmtiEnv* jvmti, JNIEnv* env, jthread thr, jmethodID meth, jlocation loc) { in cbSingleStep()
114 jthread thr, in cbExceptionCatch()
132 jthread thr, in cbException()
150 void JNICALL cbMethodEntry(jvmtiEnv* jvmti, JNIEnv* env, jthread thr, jmethodID method) { in cbMethodEntry()
165 jthread thr, in cbMethodExit()
183 jthread thr, in cbFieldModification()
206 jthread thr, in cbFieldAccess()
226 cbBreakpointHit(jvmtiEnv* jvmti, JNIEnv* env, jthread thr, jmethodID method, jlocation loc) { in cbBreakpointHit()
249 jthread thr, in cbFramePop()
261 void JNICALL cbClassLoadOrPrepare(jvmtiEnv* jvmti, JNIEnv* env, jthread thr, jclass klass) { in cbClassLoadOrPrepare()
[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()
/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/904-object-allocation/
Dtracking.cc81 ScopedGlobalRef<jthread> thr_;
89 jthread thread, in ObjectAllocated()
98 ScopedGlobalRef<jthread>(jni_env, thread)}); in ObjectAllocated()
113 JNIEnv* env, jclass, jthread thread, jboolean enable) { in Java_art_Test904_enableAllocationTracking()
125 std::vector<jthread> thread_lst; in Java_art_Test904_getTrackingEventMessages()
130 thread_lst.push_back(reinterpret_cast<jthread>(env->GetObjectArrayElement(threads, i))); in Java_art_Test904_getTrackingEventMessages()
133 ScopedLocalRef<jthread> thr(env, ev.thr_.Get(env)); in Java_art_Test904_getTrackingEventMessages()
134 for (jthread req_thread : thread_lst) { in Java_art_Test904_getTrackingEventMessages()
/art/tools/jvmti-agents/jit-load/
Djitload.cc38 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/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/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/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/1919-vminit-thread-start-timing/
Dvminit.cc49 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/
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 …]

123