Lines Matching refs:jvmti_env
78 static void BindMethod(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass, jmethodID method) { in BindMethod() argument
85 jvmtiError name_result = jvmti_env->GetMethodName(method, &name_cstr, &sig_cstr, nullptr); in BindMethod()
86 CheckJvmtiError(jvmti_env, name_result); in BindMethod()
93 jvmtiError klass_result = jvmti_env->GetClassSignature(klass, &klass_name, nullptr); in BindMethod()
94 CheckJvmtiError(jvmti_env, klass_result); in BindMethod()
99 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, name_cstr)); in BindMethod()
100 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, sig_cstr)); in BindMethod()
101 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, klass_name)); in BindMethod()
177 jclass GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in GetClass() argument
199 CheckJvmtiError(jvmti_env, jvmti_env->GetAllThreads(&thread_count, &threads)); in GetClass()
200 JvmtiUniquePtr threads_uptr = MakeJvmtiUniquePtr(jvmti_env, threads); in GetClass()
207 CheckJvmtiError(jvmti_env, jvmti_env->GetThreadInfo(threads[t], &info)); in GetClass()
208 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, info.name)); in GetClass()
231 void BindFunctionsOnClass(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass) { in BindFunctionsOnClass() argument
235 jvmtiError methods_result = jvmti_env->GetClassMethods(klass, &method_count, &methods); in BindFunctionsOnClass()
236 CheckJvmtiError(jvmti_env, methods_result); in BindFunctionsOnClass()
241 jvmtiError mod_result = jvmti_env->GetMethodModifiers(methods[i], &modifiers); in BindFunctionsOnClass()
242 CheckJvmtiError(jvmti_env, mod_result); in BindFunctionsOnClass()
245 BindMethod(jvmti_env, env, klass, methods[i]); in BindFunctionsOnClass()
249 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, methods)); in BindFunctionsOnClass()
252 void BindFunctions(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in BindFunctions() argument
254 ScopedLocalRef<jclass> klass(env, GetClass(jvmti_env, env, class_name, class_loader)); in BindFunctions()
256 BindFunctionsOnClass(jvmti_env, env, klass.get()); in BindFunctions()