mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8199739: Use HeapAccess when loading oops from static fields in javaClasses.cpp
Reviewed-by: kbarrett, eosterlund
This commit is contained in:
parent
383a921aac
commit
d4d5ea316b
4 changed files with 17 additions and 31 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue