agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6879063 Sdiff agent/src/share/classes/sun/jvm/hotspot/runtime

agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java

Print this page




 439   }
 440 
 441   /** Returns the CPU this VM is running on. Notice that by delegating
 442       to the debugger we can transparently support remote
 443       debugging. */
 444   public String getCPU() {
 445     if (debugger != null) {
 446       return debugger.getCPU();
 447     }
 448     return PlatformInfo.getCPU();
 449   }
 450 
 451   public Type lookupType(String cTypeName) {
 452     return db.lookupType(cTypeName);
 453   }
 454 
 455   public Integer lookupIntConstant(String name) {
 456     return db.lookupIntConstant(name);
 457   }
 458 





 459   public long getAddressSize() {
 460     return db.getAddressSize();
 461   }
 462 
 463   public long getOopSize() {
 464     return oopSize;
 465   }
 466 
 467   public long getLogAddressSize() {
 468     return logAddressSize;
 469   }
 470 
 471   public long getIntSize() {
 472     return db.getJIntType().getSize();
 473   }
 474 
 475   /** NOTE: this offset is in BYTES in this system! */
 476   public long getStackBias() {
 477     return stackBias;
 478   }




 439   }
 440 
 441   /** Returns the CPU this VM is running on. Notice that by delegating
 442       to the debugger we can transparently support remote
 443       debugging. */
 444   public String getCPU() {
 445     if (debugger != null) {
 446       return debugger.getCPU();
 447     }
 448     return PlatformInfo.getCPU();
 449   }
 450 
 451   public Type lookupType(String cTypeName) {
 452     return db.lookupType(cTypeName);
 453   }
 454 
 455   public Integer lookupIntConstant(String name) {
 456     return db.lookupIntConstant(name);
 457   }
 458 
 459   // Convenience function for conversions
 460   static public long getAddressValue(Address addr) {
 461     return VM.getVM().getDebugger().getAddressValue(addr);
 462   }
 463 
 464   public long getAddressSize() {
 465     return db.getAddressSize();
 466   }
 467 
 468   public long getOopSize() {
 469     return oopSize;
 470   }
 471 
 472   public long getLogAddressSize() {
 473     return logAddressSize;
 474   }
 475 
 476   public long getIntSize() {
 477     return db.getJIntType().getSize();
 478   }
 479 
 480   /** NOTE: this offset is in BYTES in this system! */
 481   public long getStackBias() {
 482     return stackBias;
 483   }


agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File