Lines Matching refs:env

46 static void AgentMain(jvmtiEnv* jenv, JNIEnv* env, void* arg) {  in AgentMain()  argument
54 CHECK(!env->IsSameObject(this_thread, data->main_thread)); in AgentMain()
63 env->DeleteLocalRef(info.thread_group); in AgentMain()
66 env->DeleteLocalRef(info.context_class_loader); in AgentMain()
80 if (env->IsSameObject(threads[i], this_thread)) { in AgentMain()
93 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED) { in Java_art_Test931_testAgentThread() argument
95 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("Agent Thread")); in Java_art_Test931_testAgentThread()
100 ScopedLocalRef<jclass> thread_klass(env, env->FindClass("java/lang/Thread")); in Java_art_Test931_testAgentThread()
104 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get())); in Java_art_Test931_testAgentThread()
113 if (JvmtiErrorToException(env, jvmti_env, info_result)) { in Java_art_Test931_testAgentThread()
118 ScopedLocalRef<jobject> thread_group(env, cur_thread_info.thread_group); in Java_art_Test931_testAgentThread()
120 env->DeleteLocalRef(cur_thread_info.context_class_loader); in Java_art_Test931_testAgentThread()
123 jmethodID initID = env->GetMethodID(thread_klass.get(), in Java_art_Test931_testAgentThread()
129 env->CallNonvirtualVoidMethod(thread.get(), in Java_art_Test931_testAgentThread()
136 if (env->ExceptionCheck()) { in Java_art_Test931_testAgentThread()
142 if (JvmtiErrorToException(env, jvmti_env, main_thread_result)) { in Java_art_Test931_testAgentThread()
147 data.main_thread = env->NewGlobalRef(main_thread); in Java_art_Test931_testAgentThread()
153 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test931_testAgentThread()
166 if (JvmtiErrorToException(env, jvmti_env, state_result)) { in Java_art_Test931_testAgentThread()
178 env->DeleteGlobalRef(data.main_thread); in Java_art_Test931_testAgentThread()