< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Metadata.java
Print this page
@@ -42,10 +42,15 @@
public Metadata(Address addr) {
super(addr);
}
+ public static long alignSize(long size) {
+ // natural word size.
+ return VM.getVM().alignUp(size, VM.getVM().getBytesPerWord());
+ }
+
private static VirtualBaseConstructor<Metadata> metadataConstructor;
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
metadataConstructor = new VirtualBaseConstructor<Metadata>(db, db.lookupType("Metadata"), null, null);
// Define an explicit mapping since the C++ and Java type names don't match.
< prev index next >