mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8139891: Prepare Unsafe for true encapsulation
Reviewed-by: alanb, dholmes, jrose, psandoz, twisti
This commit is contained in:
parent
4aad17f807
commit
ca4787d77b
13 changed files with 218 additions and 140 deletions
|
@ -1008,8 +1008,8 @@ bool universe_post_init() {
|
|||
Universe::_finalizer_register_cache->init(
|
||||
SystemDictionary::Finalizer_klass(), m);
|
||||
|
||||
SystemDictionary::misc_Unsafe_klass()->link_class(CHECK_false);
|
||||
m = SystemDictionary::misc_Unsafe_klass()->find_method(
|
||||
SystemDictionary::internal_Unsafe_klass()->link_class(CHECK_false);
|
||||
m = SystemDictionary::internal_Unsafe_klass()->find_method(
|
||||
vmSymbols::throwIllegalAccessError_name(),
|
||||
vmSymbols::void_method_signature());
|
||||
if (m != NULL && !m->is_static()) {
|
||||
|
@ -1019,7 +1019,7 @@ bool universe_post_init() {
|
|||
return false; // initialization failed (cannot throw exception yet)
|
||||
}
|
||||
Universe::_throw_illegal_access_error_cache->init(
|
||||
SystemDictionary::misc_Unsafe_klass(), m);
|
||||
SystemDictionary::internal_Unsafe_klass(), m);
|
||||
|
||||
// Setup method for registering loaded classes in class loader vector
|
||||
SystemDictionary::ClassLoader_klass()->link_class(CHECK_false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue