add JVM_GetResourceLookupCacheURLs

This improves support for building with openjdk=$jdk8.  Note, however,
that the Processes test does not pass, since JDK 8's
java.lang.UNIXProcess uses invokedynamic, which Avian does not yet
support.
This commit is contained in:
Joel Dice 2015-03-12 10:50:47 -06:00
parent 6c7ff9874e
commit dc7e68708f
2 changed files with 13 additions and 2 deletions

View File

@ -159,6 +159,7 @@ SUNWprivate_1.1 {
JVM_GetMethodParameterAnnotations;
JVM_GetPrimitiveArrayElement;
JVM_GetProtectionDomain;
JVM_GetResourceLookupCacheURLs;
JVM_GetSockName;
JVM_GetSockOpt;
JVM_GetStackAccessControlContext;
@ -291,4 +292,3 @@ SUNWprivate_1.1 {
# This is for Forte Analyzer profiling support.
AsyncGetCallTrace;
};

View File

@ -441,6 +441,11 @@ class MyClasspath : public Classpath {
setObjectClass(t, c, type(t, GcJclass::Type));
c->setName(t, name);
c->setVmClass(t, class_);
#ifdef HAVE_JclassClassLoader
if (class_->loader() != roots(t)->bootLoader()) {
c->setClassLoader(t, class_->loader());
}
#endif
return c;
}
@ -4564,6 +4569,12 @@ extern "C" AVIAN_EXPORT jobject JNICALL
return reinterpret_cast<jobject>(run(t, jvmGetProtectionDomain, arguments));
}
extern "C" AVIAN_EXPORT jobject JNICALL
EXPORT(JVM_GetResourceLookupCacheURLs)(Thread*, jobject)
{
return 0;
}
extern "C" AVIAN_EXPORT void JNICALL
EXPORT(JVM_SetProtectionDomain)(Thread*, jclass, jobject)
{