comparison 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
comparison
equal deleted inserted replaced
14965:c64cd1dd4bd1 14966:53a0a0b8c234
1119 1119
1120 oop pd = java_lang_Class::protection_domain(JNIHandles::resolve(cls)); 1120 oop pd = java_lang_Class::protection_domain(JNIHandles::resolve(cls));
1121 return (jobject) JNIHandles::make_local(env, pd); 1121 return (jobject) JNIHandles::make_local(env, pd);
1122 JVM_END 1122 JVM_END
1123 1123
1124 // Preserved in Graal repo so that linking against a JDK7 libjava.so works
1125 JVM_ENTRY(void, JVM_SetProtectionDomain(JNIEnv *env, jclass cls, jobject protection_domain))
1126 JVMWrapper("JVM_SetProtectionDomain");
1127
1128 ResourceMark rm(THREAD);
1129 const char* msg = "Obsolete JVM_SetProtectionDomain function called";
1130 size_t buflen = strlen(msg);
1131 char* buf = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, buflen);
1132 jio_snprintf(buf, buflen, msg);
1133 THROW_MSG(vmSymbols::java_lang_LinkageError(), buf);
1134 JVM_END
1135
1136 static bool is_authorized(Handle context, instanceKlassHandle klass, TRAPS) { 1124 static bool is_authorized(Handle context, instanceKlassHandle klass, TRAPS) {
1137 // If there is a security manager and protection domain, check the access 1125 // If there is a security manager and protection domain, check the access
1138 // in the protection domain, otherwise it is authorized. 1126 // in the protection domain, otherwise it is authorized.
1139 if (java_lang_System::has_security_manager()) { 1127 if (java_lang_System::has_security_manager()) {
1140 1128