changeset 16778:8a05a498ab76

set protection domain to null for classes loaded by the Graal class loader
author Doug Simon <doug.simon@oracle.com>
date Tue, 12 Aug 2014 00:01:54 +0200
parents 3841273677a3
children e52ad0d3b7d6
files src/share/vm/classfile/javaClasses.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/javaClasses.cpp	Mon Aug 11 13:53:37 2014 -0700
+++ b/src/share/vm/classfile/javaClasses.cpp	Tue Aug 12 00:01:54 2014 +0200
@@ -594,6 +594,12 @@
       set_init_lock(mirror(), r);
 
       // Set protection domain also
+#ifdef GRAAL
+      if (k->class_loader() == SystemDictionary::graal_loader()) {
+        // Same protection domain as for classes loaded by the boot loader
+        protection_domain = Handle();
+      }
+#endif
       set_protection_domain(mirror(), protection_domain());
 
       // Initialize static fields