Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
16777:3841273677a3 | 16778:8a05a498ab76 |
---|---|
592 // it can be held across a java call. | 592 // it can be held across a java call. |
593 typeArrayOop r = oopFactory::new_typeArray(T_INT, 0, CHECK_NULL); | 593 typeArrayOop r = oopFactory::new_typeArray(T_INT, 0, CHECK_NULL); |
594 set_init_lock(mirror(), r); | 594 set_init_lock(mirror(), r); |
595 | 595 |
596 // Set protection domain also | 596 // Set protection domain also |
597 #ifdef GRAAL | |
598 if (k->class_loader() == SystemDictionary::graal_loader()) { | |
599 // Same protection domain as for classes loaded by the boot loader | |
600 protection_domain = Handle(); | |
601 } | |
602 #endif | |
597 set_protection_domain(mirror(), protection_domain()); | 603 set_protection_domain(mirror(), protection_domain()); |
598 | 604 |
599 // Initialize static fields | 605 // Initialize static fields |
600 InstanceKlass::cast(k())->do_local_static_fields(&initialize_static_field, CHECK_NULL); | 606 InstanceKlass::cast(k())->do_local_static_fields(&initialize_static_field, CHECK_NULL); |
601 } | 607 } |