Lines Matching defs:jvmti

47 #include "jvmti.h"
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");
80 Agent::get_monitor(jvmtiEnv *jvmti, JNIEnv *env, jobject object)
88 err = jvmti->GetTag(object, &tag);
89 check_jvmti_error(jvmti, err, "get tag");
93 m = new Monitor(jvmti, env, object);
105 err = jvmti->SetTag(object, tag);
106 check_jvmti_error(jvmti, err, "set tag");
112 Agent::Agent(jvmtiEnv *jvmti, JNIEnv *env, jthread thread)
130 void Agent::vm_death(jvmtiEnv *jvmti, JNIEnv *env)
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)
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");
176 void Agent::monitor_contended_enter(jvmtiEnv* jvmti, JNIEnv *env,
179 get_monitor(jvmti, env, object)->contended();
180 get_thread(jvmti, env, thread)->
181 monitor_contended_enter(jvmti, env, thread, object);
185 void Agent::monitor_contended_entered(jvmtiEnv* jvmti, JNIEnv *env,
192 void Agent::monitor_wait(jvmtiEnv* jvmti, JNIEnv *env,
195 get_monitor(jvmti, env, object)->waited();
196 get_thread(jvmti, env, thread)->
197 monitor_wait(jvmti, env, thread, object, timeout);
201 void Agent::monitor_waited(jvmtiEnv* jvmti, JNIEnv *env,
205 get_monitor(jvmti, env, object)->timeout();
207 get_thread(jvmti, env, thread)->
208 monitor_waited(jvmti, env, thread, object, timed_out);
212 void Agent::object_free(jvmtiEnv* jvmti, jlong tag)