8199739: Use HeapAccess when loading oops from static fields in javaClasses.cpp

Reviewed-by: kbarrett, eosterlund
This commit is contained in:
Roman Kennke 2018-03-21 16:00:41 +01:00
parent 383a921aac
commit d4d5ea316b
4 changed files with 17 additions and 31 deletions

View file

@ -2255,12 +2255,6 @@ void InstanceKlass::set_source_debug_extension(const char* array, int length) {
}
}
address InstanceKlass::static_field_addr(int offset) {
assert(offset >= InstanceMirrorKlass::offset_of_static_fields(), "has already been adjusted");
return (address)(offset + cast_from_oop<intptr_t>(java_mirror()));
}
const char* InstanceKlass::signature_name() const {
int hash_len = 0;
char hash_buf[40];