Lines Matching refs:jvmti_env
47 jvmti_env, in Java_art_Test924_nativeWaiterStructAlloc()
48 jvmti_env->Allocate(sizeof(WaiterStruct), in Java_art_Test924_nativeWaiterStructAlloc()
75 JvmtiErrorToException(env, jvmti_env, jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(s))); in Java_art_Test924_nativeLoop()
84 jvmtiError result = jvmti_env->GetCurrentThread(&thread); in Java_art_Test924_getCurrentThread()
85 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getCurrentThread()
96 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in Java_art_Test924_getThreadInfo()
97 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getThreadInfo()
128 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(info.name)); in Java_art_Test924_getThreadInfo()
142 jvmtiError result = jvmti_env->GetThreadState(thread, &state); in Java_art_Test924_getThreadState()
143 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getThreadState()
154 jvmtiError result = jvmti_env->GetAllThreads(&thread_count, &threads); in Java_art_Test924_getAllThreads()
155 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getAllThreads()
164 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(threads)); in Java_art_Test924_getAllThreads()
172 jvmtiError result = jvmti_env->GetThreadLocalStorage(thread, &tls); in Java_art_Test924_getTLS()
173 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getTLS()
182 jvmtiError result = jvmti_env->SetThreadLocalStorage(thread, tls); in Java_art_Test924_setTLS()
183 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test924_setTLS()
189 static void JNICALL ThreadEvent(jvmtiEnv* jvmti_env, in ThreadEvent() argument
197 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in ThreadEvent()
208 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(info.name)); in ThreadEvent()
213 static void JNICALL ThreadStart(jvmtiEnv* jvmti_env, in ThreadStart() argument
216 ThreadEvent(jvmti_env, jni_env, thread, true); in ThreadStart()
219 static void JNICALL ThreadEnd(jvmtiEnv* jvmti_env, in ThreadEnd() argument
222 ThreadEvent(jvmti_env, jni_env, thread, false); in ThreadEnd()
228 jvmtiError ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_art_Test924_enableThreadEvents()
231 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test924_enableThreadEvents()
234 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_art_Test924_enableThreadEvents()
237 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Test924_enableThreadEvents()
245 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test924_enableThreadEvents()
246 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test924_enableThreadEvents()
250 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_art_Test924_enableThreadEvents()
253 if (JvmtiErrorToException(env, jvmti_env, ret)) { in Java_art_Test924_enableThreadEvents()
256 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_art_Test924_enableThreadEvents()
259 JvmtiErrorToException(env, jvmti_env, ret); in Java_art_Test924_enableThreadEvents()