Lines Matching refs:env

29     JNIEnv* env, jclass, jthread thr) {  in Java_art_Suspension_isSuspended()  argument
31 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetThreadState(thr, &state))) { in Java_art_Suspension_isSuspended()
37 static std::vector<jthread> CopyToVector(JNIEnv* env, jobjectArray thrs) { in CopyToVector() argument
38 jsize len = env->GetArrayLength(thrs); in CopyToVector()
41 ret.push_back(reinterpret_cast<jthread>(env->GetObjectArrayElement(thrs, i))); in CopyToVector()
46 extern "C" JNIEXPORT jintArray JNICALL Java_art_Suspension_resumeList(JNIEnv* env, in Java_art_Suspension_resumeList() argument
50 std::vector<jthread> threads(CopyToVector(env, thr)); in Java_art_Suspension_resumeList()
51 if (env->ExceptionCheck()) { in Java_art_Suspension_resumeList()
54 jintArray ret = env->NewIntArray(threads.size()); in Java_art_Suspension_resumeList()
55 if (env->ExceptionCheck()) { in Java_art_Suspension_resumeList()
58 jint* elems = env->GetIntArrayElements(ret, nullptr); in Java_art_Suspension_resumeList()
59 JvmtiErrorToException(env, jvmti_env, in Java_art_Suspension_resumeList()
63 env->ReleaseIntArrayElements(ret, elems, 0); in Java_art_Suspension_resumeList()
67 extern "C" JNIEXPORT jintArray JNICALL Java_art_Suspension_suspendList(JNIEnv* env, in Java_art_Suspension_suspendList() argument
71 std::vector<jthread> threads(CopyToVector(env, thrs)); in Java_art_Suspension_suspendList()
72 if (env->ExceptionCheck()) { in Java_art_Suspension_suspendList()
75 jintArray ret = env->NewIntArray(threads.size()); in Java_art_Suspension_suspendList()
76 if (env->ExceptionCheck()) { in Java_art_Suspension_suspendList()
79 jint* elems = env->GetIntArrayElements(ret, nullptr); in Java_art_Suspension_suspendList()
80 JvmtiErrorToException(env, jvmti_env, in Java_art_Suspension_suspendList()
84 env->ReleaseIntArrayElements(ret, elems, 0); in Java_art_Suspension_suspendList()
88 extern "C" JNIEXPORT void JNICALL Java_art_Suspension_resume(JNIEnv* env, jclass, jthread thr) { in Java_art_Suspension_resume() argument
89 JvmtiErrorToException(env, jvmti_env, jvmti_env->ResumeThread(thr)); in Java_art_Suspension_resume()
92 extern "C" JNIEXPORT void JNICALL Java_art_Suspension_suspend(JNIEnv* env, jclass, jthread thr) { in Java_art_Suspension_suspend() argument
93 JvmtiErrorToException(env, jvmti_env, jvmti_env->SuspendThread(thr)); in Java_art_Suspension_suspend()