summaryrefslogtreecommitdiff
path: root/debian/patches/pr2775-cache_api.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-12 22:48:36 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-12 22:48:36 +0300
commit37d630875d33bf3c291026c40bb08d1b6c9edcc8 (patch)
tree68fb026f54a962cf1d631f010e98681add6ed014 /debian/patches/pr2775-cache_api.diff
downloadopenjdk-8-debian.tar.gz
Imported debian/openjdk-8_8u131-b11-1debian/8u131-b11-1debian
Diffstat (limited to 'debian/patches/pr2775-cache_api.diff')
-rw-r--r--debian/patches/pr2775-cache_api.diff54
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/patches/pr2775-cache_api.diff b/debian/patches/pr2775-cache_api.diff
new file mode 100644
index 0000000..4d79d12
--- /dev/null
+++ b/debian/patches/pr2775-cache_api.diff
@@ -0,0 +1,54 @@
+commit 25b39703b2c3468f666f6175ff94e46526d402a7
+Author: Xerxes Rånby <xerxes@gudinna.com>
+Date: Tue Dec 22 13:33:44 2015 +0100
+
+ OpenJDK 8: Add JDK8u JDK-8061651 API. IcedTea PR2775.
+
+ Implement minimal JVM functionality to tell JDK8u that the JDK-8061651 API is unsupported by JamVM
+
+ JVM_GetResourceLookupCacheURLs
+ JVM_GetResourceLookupCache
+ JVM_KnownToNotExist
+
+ Signed-off-by: Xerxes Rånby <xerxes@gudinna.com>
+
+diff --git a/src/classlib/openjdk/jvm.c b/src/classlib/openjdk/jvm.c
+index 971ac75..955621d 100644
+--- jamvm.old/jamvm/src/classlib/openjdk/jvm.c
++++ jamvm/jamvm/src/classlib/openjdk/jvm.c
+@@ -666,6 +666,35 @@ void JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers) {
+ }
+
+
++/* JVM_GetResourceLookupCacheURLs
++ is part of the
++ JDK-8061651 JDK8u API
++*/
++
++jobjectArray JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader) {
++ return NULL; // tell OpenJDK 8 that the lookup cache API is unavailable
++}
++
++/* JVM_GetResourceLookupCache
++ is unused however it is part of the
++ JDK-8061651 JDK8u API
++*/
++
++jintArray JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name) {
++ UNIMPLEMENTED("JVM_GetResourceLookupCache");
++ return NULL; // tell OpenJDK 8 that the lookup cache is unavailable
++}
++
++/* JVM_KnownToNotExist
++ is unused however it is part of the
++ JDK-8061651 JDK8u API
++*/
++
++jboolean JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname) {
++ UNIMPLEMENTED("JVM_KnownToNotExist");
++ return JNI_FALSE; // tell OpenJDK 8 we don't know whether it exists or not
++}
++
+ /* JVM_GetProtectionDomain */
+
+ jobject JVM_GetProtectionDomain(JNIEnv *env, jclass cls) {