diff -r 4c8e1c4a798b -r 6235d2c7549f hotspot/src/share/vm/classfile/systemDictionary.cpp --- 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