Last active
November 2, 2015 11:33
-
-
Save sachin-handiekar/7ac8bf9aefd64f5ed46d to your computer and use it in GitHub Desktop.
A simple JVMTI example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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