コード例 #1
0
  public ThreadProxy getThreadProxy(Address addr) {
    // Addr is the address of the JavaThread.
    // Fetch the OSThread (for now and for simplicity, not making a
    // separate "OSThread" class in this package)
    Address osThreadAddr = osThreadField.getValue(addr);
    // Get the address of the _thread_id from the OSThread
    Address threadIdAddr = osThreadAddr.addOffsetTo(osThreadThreadIDField.getOffset());

    JVMDebugger debugger = VM.getVM().getDebugger();
    return debugger.getThreadForIdentifierAddress(threadIdAddr);
  }
コード例 #2
0
 public String getDescription() {
   return CStringUtilities.getString(descriptionField.getValue(addr));
 }
コード例 #3
0
 public Address getLastJavaFP(Address addr) {
   return lastJavaFPField.getValue(
       addr.addOffsetTo(sun.jvm.hotspot.runtime.JavaThread.getAnchorField().getOffset()));
 }
コード例 #4
0
 /** Breakpoint support (see methods on methodOop for details) */
 public BreakpointInfo getBreakpoints() {
   Address addr = getHandle().getAddressAt(Oop.getHeaderSize() + breakpoints.getOffset());
   return (BreakpointInfo) VMObjectFactory.newObject(BreakpointInfo.class, addr);
 }
コード例 #5
0
ファイル: Method.java プロジェクト: OS2World/LIB-JAVA-OpenJDK
 // get associated compiled native method, if available, else return null.
 public NMethod getNativeMethod() {
   Address addr = code.getValue(getHandle());
   return (NMethod) VMObjectFactory.newObject(NMethod.class, addr);
 }