Lines Matching refs:jenv
222 static std::string GetClassName(jvmtiEnv* jenv, JNIEnv* jni_env, jclass klass) {
224 jvmtiError result = jenv->GetClassSignature(klass, &name, nullptr);
227 JvmtiErrorToException(jni_env, jenv, result);
235 jenv->Deallocate(reinterpret_cast<unsigned char*>(name));
297 static void JNICALL ClassLoadCallback(jvmtiEnv* jenv,
301 std::string name = GetClassName(jenv, jni_env, klass);
305 std::string thread_name = GetThreadName(jenv, jni_env, thread);
319 static void JNICALL ClassPrepareCallback(jvmtiEnv* jenv,
323 std::string name = GetClassName(jenv, jni_env, klass);
327 std::string thread_name = GetThreadName(jenv, jni_env, thread);
334 std::string cur_thread_name = GetThreadName(jenv, jni_env, nullptr);
343 static std::string GetThreadName(jvmtiEnv* jenv, JNIEnv* jni_env, jthread thread) {
345 jvmtiError result = jenv->GetThreadInfo(thread, &info);
348 JvmtiErrorToException(jni_env, jenv, result);
356 jenv->Deallocate(reinterpret_cast<unsigned char*>(info.name));
450 static void JNICALL ClassLoadCallback(jvmtiEnv* jenv,
454 std::string name = GetClassName(jenv, jni_env, klass);
461 "local-ref", jenv, jni_env, &AgentThreadTest, static_cast<jobject*>(&stored_class_))));
471 static void JNICALL ClassPrepareCallback(jvmtiEnv* jenv,
475 std::string name = GetClassName(jenv, jni_env, klass);