comparison agent/src/share/classes/sun/jvm/hotspot/runtime/JavaThread.java @ 774:f1f3a2719a55

6843580: JavaThread.getStackBase throws sun.jvm.hotspot.WrongTypeException invoked by jstack Reviewed-by: phh, dice, never, swamyv
author xlu
date Fri, 22 May 2009 16:40:38 -0700
parents b9fba36710f2
children bd02caa94611
comparison
equal deleted inserted replaced
773:47ffceb239d0 774:f1f3a2719a55
315 public OSThread getOSThread() { 315 public OSThread getOSThread() {
316 return (OSThread) VMObjectFactory.newObject(OSThread.class, osThreadField.getValue(addr)); 316 return (OSThread) VMObjectFactory.newObject(OSThread.class, osThreadField.getValue(addr));
317 } 317 }
318 318
319 public Address getStackBase() { 319 public Address getStackBase() {
320 return stackBaseField.getValue(); 320 return stackBaseField.getValue(addr);
321 } 321 }
322 322
323 public long getStackSize() { 323 public long getStackSize() {
324 return stackSizeField.getValue(); 324 return stackSizeField.getValue(addr);
325 } 325 }
326 326
327 /** Gets the Java-side thread object for this JavaThread */ 327 /** Gets the Java-side thread object for this JavaThread */
328 public Oop getThreadObj() { 328 public Oop getThreadObj() {
329 return VM.getVM().getObjectHeap().newOop(threadObjField.getValue(addr)); 329 return VM.getVM().getObjectHeap().newOop(threadObjField.getValue(addr));