# HG changeset patch # User Doug Simon # Date 1396551913 -7200 # Node ID 53a0a0b8c234eb94c8ea5a3112318d6144509124 # Parent c64cd1dd4bd16a2012fb1d8aca0a103ad14a4d65 Backed out e636d62005c3 since GraalVM no longer needs to run in jdk7 diff -r c64cd1dd4bd1 -r 53a0a0b8c234 make/bsd/makefiles/mapfile-vers-debug --- a/make/bsd/makefiles/mapfile-vers-debug Thu Apr 03 20:54:30 2014 +0200 +++ b/make/bsd/makefiles/mapfile-vers-debug Thu Apr 03 21:05:13 2014 +0200 @@ -221,8 +221,6 @@ _JVM_SetLength _JVM_SetNativeThreadName _JVM_SetPrimitiveArrayElement - # Preserved so that Graal repo can link against a JDK7 libjava.so works - _JVM_SetProtectionDomain _JVM_SetSockOpt _JVM_SetThreadPriority _JVM_Sleep diff -r c64cd1dd4bd1 -r 53a0a0b8c234 make/bsd/makefiles/mapfile-vers-product --- a/make/bsd/makefiles/mapfile-vers-product Thu Apr 03 20:54:30 2014 +0200 +++ b/make/bsd/makefiles/mapfile-vers-product Thu Apr 03 21:05:13 2014 +0200 @@ -221,8 +221,6 @@ _JVM_SetLength _JVM_SetNativeThreadName _JVM_SetPrimitiveArrayElement - # Preserved so that Graal repo can link against a JDK7 libjava.so works - _JVM_SetProtectionDomain _JVM_SetSockOpt _JVM_SetThreadPriority _JVM_Sleep diff -r c64cd1dd4bd1 -r 53a0a0b8c234 make/linux/makefiles/mapfile-vers-debug --- a/make/linux/makefiles/mapfile-vers-debug Thu Apr 03 20:54:30 2014 +0200 +++ b/make/linux/makefiles/mapfile-vers-debug Thu Apr 03 21:05:13 2014 +0200 @@ -223,8 +223,6 @@ JVM_SetLength; JVM_SetNativeThreadName; JVM_SetPrimitiveArrayElement; - # Preserved so that Graal repo can link against a JDK7 libjava.so works - JVM_SetProtectionDomain; JVM_SetSockOpt; JVM_SetThreadPriority; JVM_Sleep; diff -r c64cd1dd4bd1 -r 53a0a0b8c234 make/linux/makefiles/mapfile-vers-product --- a/make/linux/makefiles/mapfile-vers-product Thu Apr 03 20:54:30 2014 +0200 +++ b/make/linux/makefiles/mapfile-vers-product Thu Apr 03 21:05:13 2014 +0200 @@ -223,8 +223,6 @@ JVM_SetLength; JVM_SetNativeThreadName; JVM_SetPrimitiveArrayElement; - # Preserved so that Graal repo can link against a JDK7 libjava.so works - JVM_SetProtectionDomain; JVM_SetSockOpt; JVM_SetThreadPriority; JVM_Sleep; diff -r c64cd1dd4bd1 -r 53a0a0b8c234 src/share/vm/prims/jvm.cpp --- a/src/share/vm/prims/jvm.cpp Thu Apr 03 20:54:30 2014 +0200 +++ b/src/share/vm/prims/jvm.cpp Thu Apr 03 21:05:13 2014 +0200 @@ -1121,18 +1121,6 @@ return (jobject) JNIHandles::make_local(env, pd); JVM_END -// Preserved in Graal repo so that linking against a JDK7 libjava.so works -JVM_ENTRY(void, JVM_SetProtectionDomain(JNIEnv *env, jclass cls, jobject protection_domain)) - JVMWrapper("JVM_SetProtectionDomain"); - - ResourceMark rm(THREAD); - const char* msg = "Obsolete JVM_SetProtectionDomain function called"; - size_t buflen = strlen(msg); - char* buf = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, buflen); - jio_snprintf(buf, buflen, msg); - THROW_MSG(vmSymbols::java_lang_LinkageError(), buf); -JVM_END - static bool is_authorized(Handle context, instanceKlassHandle klass, TRAPS) { // If there is a security manager and protection domain, check the access // in the protection domain, otherwise it is authorized. diff -r c64cd1dd4bd1 -r 53a0a0b8c234 src/share/vm/prims/jvm.h --- a/src/share/vm/prims/jvm.h Thu Apr 03 20:54:30 2014 +0200 +++ b/src/share/vm/prims/jvm.h Thu Apr 03 21:05:13 2014 +0200 @@ -477,11 +477,6 @@ JNIEXPORT jboolean JNICALL JVM_IsArrayClass(JNIEnv *env, jclass cls); -// Preserved in Graal repo so that linking against a JDK7 libjava.so works -JNIEXPORT void JNICALL -JVM_SetProtectionDomain(JNIEnv *env, jclass cls, jobject protection_domain); - - JNIEXPORT jboolean JNICALL JVM_IsPrimitiveClass(JNIEnv *env, jclass cls);