8161121: VM::isSystemDomainLoader should consider platform class loader

Reviewed-by: alanb
This commit is contained in:
Mandy Chung 2017-07-28 13:22:33 -07:00
parent ec8ed521b7
commit 2cb9e39fc9
7 changed files with 13 additions and 18 deletions

View file

@ -2476,7 +2476,7 @@ return mh1;
return false;
}
ClassLoader loader = defc.getClassLoader();
if (!jdk.internal.misc.VM.isSystemDomainLoader(loader)) {
if (loader != null) {
ClassLoader sysl = ClassLoader.getSystemClassLoader();
boolean found = false;
while (sysl != null) {