provide stub for JVM_UnloadLibrary

It may leak file handles under certain circumstances to do nothing in
JVM_UnloadLibrary, but, for now, an empty implementation is more
useful than one that aborts the process.
This commit is contained in:
Joel Dice 2013-05-13 13:08:40 -06:00
parent 419ac24963
commit 6d5fbdeb7b

View File

@ -3349,7 +3349,10 @@ EXPORT(JVM_LoadLibrary)(const char* path)
}
extern "C" JNIEXPORT void JNICALL
EXPORT(JVM_UnloadLibrary)(void*) { abort(); }
EXPORT(JVM_UnloadLibrary)(void*)
{
// todo: implement this correctly for POSIX and Windows
}
extern "C" JNIEXPORT void* JNICALL
EXPORT(JVM_FindLibraryEntry)(void* library, const char* name)