hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 16631 c6860a0ebc99
parent 16599 09e39436637f
parent 16617 6235d2c7549f
child 16680 960505df90e7
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Thu Apr 04 19:07:32 2013 +0200
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Thu Apr 04 17:01:34 2013 -0700
@@ -146,6 +146,17 @@
    }
    return false;
 }
+
+/**
+ * Returns true if the passed class loader is the extension class loader.
+ */
+bool SystemDictionary::is_ext_class_loader(Handle class_loader) {
+  if (class_loader.is_null()) {
+    return false;
+  }
+  return (class_loader->klass()->name() == vmSymbols::sun_misc_Launcher_ExtClassLoader());
+}
+
 // ----------------------------------------------------------------------------
 // Resolving of classes