Get JVMTI environment

suggest change

Inside Agent_OnLoad. This is C++, and GetEnv returns a jint. Use jvmti only when that return is JNI_OK:

jvmtiEnv* jvmti;
/* Get JVMTI environment */
jint result = vm->GetEnv(reinterpret_cast<void **>(&jvmti), JVMTI_VERSION);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents