Example #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);
  }
 public long getSize() {
   return sizeField.getValue(addr);
 }
Example #3
0
 public int getNumberOfThreads() {
   return (int) numOfThreadsField.getValue();
 }
 public int top() {
   return (int) topField.getValue(addr);
 }