hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 16617 6235d2c7549f
parent 16352 1ff72c6eaa70
child 16631 c6860a0ebc99
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Sun Mar 24 12:43:13 2013 -0700
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Mon Mar 25 17:13:26 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