add JNI_GetCreatedJavaVMs stub

Recent versions of IcedTea will not run unless libjvm.so exports this
symbol.  The quick fix is to provide a stub which just always returns
-1 to indicate an error.  I'll leave a proper implementation for when
we need to support an app that actually uses this function.
This commit is contained in:
Joel Dice 2012-09-07 19:05:05 -06:00
parent eee2ce27e4
commit 90fa4c9b69

View File

@ -3626,6 +3626,13 @@ JNI_GetDefaultJavaVMInitArgs(void*)
return 0;
}
extern "C" JNIEXPORT jint JNICALL
JNI_GetCreatedJavaVMs(Machine**, jsize, jsize*)
{
// todo
return -1;
}
extern "C" JNIEXPORT jint JNICALL
JNI_CreateJavaVM(Machine** m, Thread** t, void* args)
{