6843580: JavaThread.getStackBase throws sun.jvm.hotspot.WrongTypeException invoked by jstack
authorxlu
Fri, 22 May 2009 16:40:38 -0700
changeset 2861 073fc25fed0c
parent 2860 cf13b84eb2f9
child 2879 537a4af47ca7
6843580: JavaThread.getStackBase throws sun.jvm.hotspot.WrongTypeException invoked by jstack Reviewed-by: phh, dice, never, swamyv
hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/JavaThread.java
--- a/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/JavaThread.java	Wed May 20 09:36:53 2009 +0200
+++ b/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/JavaThread.java	Fri May 22 16:40:38 2009 -0700
@@ -317,11 +317,11 @@
   }
 
   public Address getStackBase() {
-    return stackBaseField.getValue();
+    return stackBaseField.getValue(addr);
   }
 
   public long getStackSize() {
-    return stackSizeField.getValue();
+    return stackSizeField.getValue(addr);
   }
 
   /** Gets the Java-side thread object for this JavaThread */