7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives
Reviewed-by: dholmes, dcubed
--- a/hotspot/src/share/vm/prims/jvmtiTagMap.cpp Mon Oct 15 22:33:19 2012 -0400
+++ b/hotspot/src/share/vm/prims/jvmtiTagMap.cpp Tue Aug 28 15:15:29 2012 +0200
@@ -1135,7 +1135,7 @@
// 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);