mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
7086585: make Java field injection more flexible
Reviewed-by: jrose, twisti, kvn, coleenp
This commit is contained in:
parent
1ebca30d26
commit
e39ba1a5fe
39 changed files with 1073 additions and 991 deletions
|
@ -719,7 +719,7 @@ jint find_field_offset(jobject field, int must_be_static, TRAPS) {
|
|||
}
|
||||
}
|
||||
|
||||
int offset = instanceKlass::cast(k)->offset_from_fields(slot);
|
||||
int offset = instanceKlass::cast(k)->field_offset(slot);
|
||||
return field_offset_from_byte_offset(offset);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue