mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
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:
parent
419ac24963
commit
6d5fbdeb7b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user