6843580: JavaThread.getStackBase throws sun.jvm.hotspot.WrongTypeException invoked by jstack
Reviewed-by: phh, dice, never, swamyv
--- 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 */