Mercurial > hg > truffle
diff src/share/vm/classfile/javaClasses.cpp @ 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 | e9998e2be7f5 |
children | 52b4284cb496 |
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