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

@ -1070,7 +1070,7 @@ public:
int itable_offset_in_words() const { return start_of_itable() - (intptr_t*)this; }
address static_field_addr(int offset);
oop static_field_base_raw() { return java_mirror(); }
OopMapBlock* start_of_nonstatic_oop_maps() const {
return (OopMapBlock*)(start_of_itable() + itable_length());