< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/z/ZGranuleMapForPageTable.java

Print this page

        

*** 29,52 **** import sun.jvm.hotspot.runtime.VMObject; import sun.jvm.hotspot.types.AddressField; import sun.jvm.hotspot.types.Type; import sun.jvm.hotspot.types.TypeDataBase; ! public class ZAddressRangeMapForPageTable extends VMObject { private static AddressField mapField; static { VM.registerVMInitializedObserver((o, d) -> initialize(VM.getVM().getTypeDataBase())); } static private synchronized void initialize(TypeDataBase db) { ! Type type = db.lookupType("ZAddressRangeMapForPageTable"); mapField = type.getAddressField("_map"); } ! public ZAddressRangeMapForPageTable(Address addr) { super(addr); } private Address map() { return mapField.getValue(addr); --- 29,52 ---- import sun.jvm.hotspot.runtime.VMObject; import sun.jvm.hotspot.types.AddressField; import sun.jvm.hotspot.types.Type; import sun.jvm.hotspot.types.TypeDataBase; ! public class ZGranuleMapForPageTable extends VMObject { private static AddressField mapField; static { VM.registerVMInitializedObserver((o, d) -> initialize(VM.getVM().getTypeDataBase())); } static private synchronized void initialize(TypeDataBase db) { ! Type type = db.lookupType("ZGranuleMapForPageTable"); mapField = type.getAddressField("_map"); } ! public ZGranuleMapForPageTable(Address addr) { super(addr); } private Address map() { return mapField.getValue(addr);
< prev index next >