| 525 | } |
| 526 | |
| 527 | extern "C" DLLEXPORT jint JNICALL |
| 528 | JNI_OnLoad(JavaVM* vm, void* reserved) { |
| 529 | if (!VM::init(vm, true)) { |
| 530 | return 0; |
| 531 | } |
| 532 | |
| 533 | JavaAPI::registerNatives(VM::jvmti(), VM::jni()); |
| 534 | return JNI_VERSION_1_6; |
| 535 | } |
| 536 | |
| 537 | extern "C" DLLEXPORT void JNICALL |
| 538 | JNI_OnUnload(JavaVM* vm, void* reserved) { |
nothing calls this directly
no outgoing calls
no test coverage detected