add stub implementation of JVM_CurrentClassLoader

This commit is contained in:
Joel Dice 2013-05-10 11:29:20 -06:00
parent 6b3a352b38
commit 435dbbc874

View File

@ -3646,7 +3646,13 @@ extern "C" JNIEXPORT jclass JNICALL
EXPORT(JVM_CurrentLoadedClass)(Thread*) { abort(); }
extern "C" JNIEXPORT jobject JNICALL
EXPORT(JVM_CurrentClassLoader)(Thread*) { abort(); }
EXPORT(JVM_CurrentClassLoader)(Thread*)
{
// just return null, i.e. tell SecurityManager.currentClassLoader
// all permissions are granted, since Avian doesn't do any internal
// security checks:
return 0;
}
uint64_t
jvmGetClassContext(Thread* t, uintptr_t*)