--- 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