8047736: Remove JVM_GetClassLoader as no longer used
authorcoleenp
Thu, 02 Oct 2014 16:31:44 -0400
changeset 27004 816e24da988b
parent 26948 cf473af37aa0
child 27005 1a098db32564
8047736: Remove JVM_GetClassLoader as no longer used Summary: Remove this function from hotspot. It's already removed from the JDK. Reviewed-by: mchung, fparain, ctornqvi
hotspot/make/aix/makefiles/mapfile-vers-debug
hotspot/make/aix/makefiles/mapfile-vers-product
hotspot/make/bsd/makefiles/mapfile-vers-darwin-debug
hotspot/make/bsd/makefiles/mapfile-vers-darwin-product
hotspot/make/bsd/makefiles/mapfile-vers-debug
hotspot/make/bsd/makefiles/mapfile-vers-product
hotspot/make/linux/makefiles/mapfile-vers-debug
hotspot/make/linux/makefiles/mapfile-vers-product
hotspot/make/solaris/makefiles/mapfile-vers
hotspot/src/share/vm/prims/jvm.cpp
hotspot/src/share/vm/prims/jvm.h
--- a/hotspot/make/aix/makefiles/mapfile-vers-debug	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/aix/makefiles/mapfile-vers-debug	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/make/aix/makefiles/mapfile-vers-product	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/aix/makefiles/mapfile-vers-product	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/make/bsd/makefiles/mapfile-vers-darwin-debug	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/bsd/makefiles/mapfile-vers-darwin-debug	Thu Oct 02 16:31:44 2014 -0400
@@ -115,7 +115,6 @@
                 _JVM_GetClassDeclaredMethods
                 _JVM_GetClassFieldsCount
                 _JVM_GetClassInterfaces
-                _JVM_GetClassLoader
                 _JVM_GetClassMethodsCount
                 _JVM_GetClassModifiers
                 _JVM_GetClassName
--- a/hotspot/make/bsd/makefiles/mapfile-vers-darwin-product	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/bsd/makefiles/mapfile-vers-darwin-product	Thu Oct 02 16:31:44 2014 -0400
@@ -115,7 +115,6 @@
                 _JVM_GetClassDeclaredMethods
                 _JVM_GetClassFieldsCount
                 _JVM_GetClassInterfaces
-                _JVM_GetClassLoader
                 _JVM_GetClassMethodsCount
                 _JVM_GetClassModifiers
                 _JVM_GetClassName
--- a/hotspot/make/bsd/makefiles/mapfile-vers-debug	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/bsd/makefiles/mapfile-vers-debug	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/make/bsd/makefiles/mapfile-vers-product	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/bsd/makefiles/mapfile-vers-product	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/make/linux/makefiles/mapfile-vers-debug	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/linux/makefiles/mapfile-vers-debug	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/make/linux/makefiles/mapfile-vers-product	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/linux/makefiles/mapfile-vers-product	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/make/solaris/makefiles/mapfile-vers	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/make/solaris/makefiles/mapfile-vers	Thu Oct 02 16:31:44 2014 -0400
@@ -117,7 +117,6 @@
                 JVM_GetClassDeclaredMethods;
                 JVM_GetClassFieldsCount;
                 JVM_GetClassInterfaces;
-                JVM_GetClassLoader;
                 JVM_GetClassMethodsCount;
                 JVM_GetClassModifiers;
                 JVM_GetClassName;
--- a/hotspot/src/share/vm/prims/jvm.cpp	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/src/share/vm/prims/jvm.cpp	Thu Oct 02 16:31:44 2014 -0400
@@ -1073,17 +1073,6 @@
 JVM_END
 
 
-JVM_ENTRY(jobject, JVM_GetClassLoader(JNIEnv *env, jclass cls))
-  JVMWrapper("JVM_GetClassLoader");
-  if (java_lang_Class::is_primitive(JNIHandles::resolve_non_null(cls))) {
-    return NULL;
-  }
-  Klass* k = java_lang_Class::as_Klass(JNIHandles::resolve_non_null(cls));
-  oop loader = k->class_loader();
-  return JNIHandles::make_local(env, loader);
-JVM_END
-
-
 JVM_QUICK_ENTRY(jboolean, JVM_IsInterface(JNIEnv *env, jclass cls))
   JVMWrapper("JVM_IsInterface");
   oop mirror = JNIHandles::resolve_non_null(cls);
--- a/hotspot/src/share/vm/prims/jvm.h	Thu Oct 02 12:58:37 2014 +0200
+++ b/hotspot/src/share/vm/prims/jvm.h	Thu Oct 02 16:31:44 2014 -0400
@@ -462,9 +462,6 @@
 JNIEXPORT jobjectArray JNICALL
 JVM_GetClassInterfaces(JNIEnv *env, jclass cls);
 
-JNIEXPORT jobject JNICALL
-JVM_GetClassLoader(JNIEnv *env, jclass cls);
-
 JNIEXPORT jboolean JNICALL
 JVM_IsInterface(JNIEnv *env, jclass cls);