7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives
Reviewed-by: dholmes, dcubed
This commit is contained in:
parent
5f4a2405a7
commit
228b4f6d7f
@ -1135,7 +1135,7 @@ static jint invoke_primitive_field_callback_for_static_fields
|
||||
|
||||
// get offset and field value
|
||||
int offset = field->field_offset();
|
||||
address addr = (address)klass + offset;
|
||||
address addr = (address)klass->java_mirror() + offset;
|
||||
jvalue value;
|
||||
copy_to_jvalue(&value, addr, value_type);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user