hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/Oop.java
changeset 5694 1e0532a6abff
parent 670 ddf3e9583f2f
child 5702 201c5cde25bb
equal deleted inserted replaced
5693:3015c564fcbc 5694:1e0532a6abff
   126   public boolean isConstantPoolCache() { return false; }
   126   public boolean isConstantPoolCache() { return false; }
   127   public boolean isCompiledICHolder()  { return false; }
   127   public boolean isCompiledICHolder()  { return false; }
   128 
   128 
   129   // Align the object size.
   129   // Align the object size.
   130   public static long alignObjectSize(long size) {
   130   public static long alignObjectSize(long size) {
   131     return VM.getVM().alignUp(size, VM.getVM().getMinObjAlignment());
   131     return VM.getVM().alignUp(size, VM.getVM().getMinObjAlignmentInBytes());
   132   }
   132   }
   133 
   133 
   134   // All vm's align longs, so pad out certain offsets.
   134   // All vm's align longs, so pad out certain offsets.
   135   public static long alignObjectOffset(long offset) {
   135   public static long alignObjectOffset(long offset) {
   136     return VM.getVM().alignUp(offset, VM.getVM().getBytesPerLong());
   136     return VM.getVM().alignUp(offset, VM.getVM().getBytesPerLong());