From 6d5fbdeb7be17d35dfcc7f42278eef7fe4bdc27f Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 13 May 2013 13:08:40 -0600 Subject: [PATCH] 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. --- src/classpath-openjdk.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 0dad5e4201..8fcd6ff7d1 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -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)