提交 8216ef94 编写于 作者: R rbackman

7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives

Reviewed-by: dholmes, dcubed
上级 b60e593a
...@@ -1135,7 +1135,7 @@ static jint invoke_primitive_field_callback_for_static_fields ...@@ -1135,7 +1135,7 @@ static jint invoke_primitive_field_callback_for_static_fields
// get offset and field value // get offset and field value
int offset = field->field_offset(); int offset = field->field_offset();
address addr = (address)klass + offset; address addr = (address)klass->java_mirror() + offset;
jvalue value; jvalue value;
copy_to_jvalue(&value, addr, value_type); copy_to_jvalue(&value, addr, value_type);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册