diff src/share/vm/prims/jvm.cpp @ 14966:53a0a0b8c234

Backed out e636d62005c3 since GraalVM no longer needs to run in jdk7
author Doug Simon <doug.simon@oracle.com>
date Thu, 03 Apr 2014 21:05:13 +0200
parents 4ca6dc0799b6
children 5c0f2b338874
line wrap: on
line diff
--- 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.