MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / JNI_OnLoad

Function JNI_OnLoad

src/vmEntry.cpp:527–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527extern "C" DLLEXPORT jint JNICALL
528JNI_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
537extern "C" DLLEXPORT void JNICALL
538JNI_OnUnload(JavaVM* vm, void* reserved) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected