Mercurial > hg > graal-jvmci-8
diff src/share/vm/classfile/systemDictionary.cpp @ 8880:0ca3dd0ffaba
Merge
author | bharadwaj |
---|---|
date | Thu, 04 Apr 2013 17:01:34 -0700 |
parents | d886ac1dfd36 16885e702c88 |
children | b9a918201d47 68fe50d4f1d5 |
line wrap: on
line diff
--- a/src/share/vm/classfile/systemDictionary.cpp Thu Apr 04 19:07:32 2013 +0200 +++ b/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