7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives
authorrbackman
Tue, 28 Aug 2012 15:15:29 +0200
changeset 14082 7425bbf64ead
parent 14081 504ab928597a
child 14083 103054a71a30
7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives Reviewed-by: dholmes, dcubed
hotspot/src/share/vm/prims/jvmtiTagMap.cpp
--- 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);