Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/oops/Oop.java @ 1571:2d127394260e
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
Summary: Added new product ObjectAlignmentInBytes flag to control object alignment.
Reviewed-by: twisti, ysr, iveresov
author | kvn |
---|---|
date | Thu, 27 May 2010 18:01:56 -0700 |
parents | d1605aabd0a1 |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1570:de91a2f25c7e | 1571:2d127394260e |
---|---|
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()); |