Skip to content

Instantly share code, notes, and snippets.

@sachin-handiekar
Last active November 2, 2015 11:33
Show Gist options
  • Save sachin-handiekar/7ac8bf9aefd64f5ed46d to your computer and use it in GitHub Desktop.
Save sachin-handiekar/7ac8bf9aefd64f5ed46d to your computer and use it in GitHub Desktop.
A simple JVMTI example
#include <jvmti.h>
#include <stdio.h>
JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) {
printf("I'm a native Agent....");
return JNI_OK;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment