diff src/share/vm/prims/jvm.cpp @ 24140:d4858e92c9b1

[GR-4077] support Graal.SDK on the boot class path and Truffle on a class path invisible to apps but visible to JVMCI
author Doug Simon <doug.simon@oracle.com>
date Tue, 13 Jun 2017 14:22:54 +0200
parents 9b69cec6d01b
children
line wrap: on
line diff
--- a/src/share/vm/prims/jvm.cpp	Mon Jun 12 16:03:24 2017 +0200
+++ b/src/share/vm/prims/jvm.cpp	Tue Jun 13 14:22:54 2017 +0200
@@ -2370,7 +2370,7 @@
 
   ResourceMark rm(THREAD);
   const char* name = k->name()->as_C_string();
-  bool system_class = k->class_loader() == NULL JVMCI_ONLY(|| SystemDictionary::jvmci_loader() == k->class_loader());
+  bool system_class = k->class_loader() == NULL JVMCI_ONLY(|| SystemDictionary::in_jvmci_loader_hierarchy(k->class_loader()));
   return JavaAssertions::enabled(name, system_class);
 
 JVM_END