--- old/src/share/vm/classfile/systemDictionary.cpp 2013-03-25 16:56:00.000000000 -0700 +++ new/src/share/vm/classfile/systemDictionary.cpp 2013-03-25 16:56:00.000000000 -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