Lines Matching refs:jvmti
47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument
49 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv()
51 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv()
53 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv()
59 jvmtiEnv* env = *jvmti; in SetupJvmtiEnv()
81 static void CbDataDump(jvmtiEnv* jvmti) { in CbDataDump() argument
83 if (JVMTI_ERROR_NONE == GetInternalData(jvmti, &data)) { in CbDataDump()
85 Dealloc(jvmti, data); in CbDataDump()
92 jvmtiEnv* jvmti = nullptr; in AgentStart() local
93 if (SetupJvmtiEnv(vm, &jvmti) != JNI_OK) { in AgentStart()
100 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
101 jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_DATA_DUMP_REQUEST, nullptr); in AgentStart()