agent/src/share/classes/sun/jvm/hotspot/code/PCDesc.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6833129 Sdiff agent/src/share/classes/sun/jvm/hotspot/code

agent/src/share/classes/sun/jvm/hotspot/code/PCDesc.java

Print this page




  65   public int getScopeDecodeOffset() {
  66     return ((int) scopeDecodeOffsetField.getValue(addr));
  67   }
  68 
  69   public Address getRealPC(NMethod code) {
  70     return code.instructionsBegin().addOffsetTo(getPCOffset());
  71   }
  72 
  73   public void print(NMethod code) {
  74     printOn(System.out, code);
  75   }
  76 
  77   public void printOn(PrintStream tty, NMethod code) {
  78     tty.println("PCDesc(" + getRealPC(code) + "):");
  79     for (ScopeDesc sd = code.getScopeDescAt(getRealPC(code));
  80          sd != null;
  81          sd = sd.sender()) {
  82       tty.print(" ");
  83       sd.getMethod().printValueOn(tty);
  84       tty.print("  @" + sd.getBCI());

  85       tty.println();
  86     }
  87   }
  88 }


  65   public int getScopeDecodeOffset() {
  66     return ((int) scopeDecodeOffsetField.getValue(addr));
  67   }
  68 
  69   public Address getRealPC(NMethod code) {
  70     return code.instructionsBegin().addOffsetTo(getPCOffset());
  71   }
  72 
  73   public void print(NMethod code) {
  74     printOn(System.out, code);
  75   }
  76 
  77   public void printOn(PrintStream tty, NMethod code) {
  78     tty.println("PCDesc(" + getRealPC(code) + "):");
  79     for (ScopeDesc sd = code.getScopeDescAt(getRealPC(code));
  80          sd != null;
  81          sd = sd.sender()) {
  82       tty.print(" ");
  83       sd.getMethod().printValueOn(tty);
  84       tty.print("  @" + sd.getBCI());
  85       tty.print("  reexecute=" + sd.getReexecute());
  86       tty.println();
  87     }
  88   }
  89 }
agent/src/share/classes/sun/jvm/hotspot/code/PCDesc.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File