changeset 3747:045cb62046a7

7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives Reviewed-by: dholmes, dcubed
author rbackman
date Tue, 28 Aug 2012 15:15:29 +0200
parents e52361627b65
children 7b5885dadbdc
files src/share/vm/prims/jvmtiTagMap.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiTagMap.cpp	Mon Oct 15 22:33:19 2012 -0400
+++ b/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);