equal
deleted
inserted
replaced
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()); |