Lines Matching defs:thread

59 Agent::get_thread(jvmtiEnv *jvmti, JNIEnv *env, jthread thread)
66 err = jvmti->GetThreadLocalStorage(thread, (void**)&t);
67 check_jvmti_error(jvmti, err, "get thread local storage");
71 t = new Thread(jvmti, env, thread);
72 err = jvmti->SetThreadLocalStorage(thread, (const void*)t);
73 check_jvmti_error(jvmti, err, "set thread local storage");
112 Agent::Agent(jvmtiEnv *jvmti, JNIEnv *env, jthread thread)
143 /* Thread start event, setup a new thread */
144 void Agent::thread_start(jvmtiEnv *jvmti, JNIEnv *env, jthread thread)
152 t = new Thread(jvmti, env, thread);
153 err = jvmti->SetThreadLocalStorage(thread, (const void*)t);
154 check_jvmti_error(jvmti, err, "set thread local storage");
159 void Agent::thread_end(jvmtiEnv *jvmti, JNIEnv *env, jthread thread)
164 /* Find the thread */
165 t = get_thread(jvmti, env, thread);
168 err = jvmti->SetThreadLocalStorage(thread, (const void*)NULL);
169 check_jvmti_error(jvmti, err, "set thread local storage");
175 /* Monitor contention begins for a thread. */
177 jthread thread, jobject object)
180 get_thread(jvmti, env, thread)->
181 monitor_contended_enter(jvmti, env, thread, object);
184 /* Monitor contention ends for a thread. */
186 jthread thread, jobject object)
191 /* Monitor wait begins for a thread. */
193 jthread thread, jobject object, jlong timeout)
196 get_thread(jvmti, env, thread)->
197 monitor_wait(jvmti, env, thread, object, timeout);
200 /* Monitor wait ends for a thread. */
202 jthread thread, jobject object, jboolean timed_out)
207 get_thread(jvmti, env, thread)->
208 monitor_waited(jvmti, env, thread, object, timed_out);