7086585: make Java field injection more flexible

Reviewed-by: jrose, twisti, kvn, coleenp
This commit is contained in:
Tom Rodriguez 2011-09-10 17:29:02 -07:00
parent 1ebca30d26
commit e39ba1a5fe
39 changed files with 1073 additions and 991 deletions

View file

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