Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/oops/Oop.java @ 1579:e9ff18c4ace7
Merge
author | jrose |
---|---|
date | Wed, 02 Jun 2010 22:45:42 -0700 |
parents | c18cbe5936b8 2d127394260e |
children | 0a8e0d4345b3 |
comparison
equal
deleted
inserted
replaced
1562:dfe27f03244a | 1579:e9ff18c4ace7 |
---|---|
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()); |