8199946: Move load/store and encode/decode out of oopDesc

Reviewed-by: eosterlund, coleenp, tschatzl
This commit is contained in:
Stefan Karlsson 2018-03-15 21:24:10 +01:00
parent 4c21e9bc68
commit f89abe4589
71 changed files with 426 additions and 384 deletions

View file

@ -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;