mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8199946: Move load/store and encode/decode out of oopDesc
Reviewed-by: eosterlund, coleenp, tschatzl
This commit is contained in:
parent
4c21e9bc68
commit
f89abe4589
71 changed files with 426 additions and 384 deletions
|
@ -3504,7 +3504,7 @@ void java_lang_boxing_object::print(BasicType type, jvalue* value, outputStream*
|
|||
// Support for java_lang_ref_Reference
|
||||
|
||||
bool java_lang_ref_Reference::is_referent_field(oop obj, ptrdiff_t offset) {
|
||||
assert(!oopDesc::is_null(obj), "sanity");
|
||||
assert(obj != NULL, "sanity");
|
||||
if (offset != java_lang_ref_Reference::referent_offset) {
|
||||
return false;
|
||||
}
|
||||
|
@ -4131,7 +4131,7 @@ int java_lang_System::err_offset_in_bytes() { return static_err_offset; }
|
|||
bool java_lang_System::has_security_manager() {
|
||||
InstanceKlass* ik = SystemDictionary::System_klass();
|
||||
oop base = ik->static_field_base_raw();
|
||||
return !oopDesc::is_null(base->obj_field(static_security_offset));
|
||||
return base->obj_field(static_security_offset) != NULL;
|
||||
}
|
||||
|
||||
int java_lang_Class::_klass_offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue