< prev index next >

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

Print this page

        

*** 22,31 **** --- 22,32 ---- * */ package sun.jvm.hotspot.gc.z; + import sun.jvm.hotspot.debugger.Address; import sun.jvm.hotspot.runtime.VM; import sun.jvm.hotspot.types.Field; import sun.jvm.hotspot.types.Type; import sun.jvm.hotspot.types.TypeDataBase;
*** 52,64 **** public static long ZAddressOffsetShift; // Pointer part of address public static long ZAddressOffsetBits; public static long ZAddressOffsetMask; // Address space start/end/size ! public static long ZAddressSpaceStart; static { VM.registerVMInitializedObserver((o, d) -> initialize(VM.getVM().getTypeDataBase())); } --- 53,66 ---- public static long ZAddressOffsetShift; // Pointer part of address public static long ZAddressOffsetBits; public static long ZAddressOffsetMask; + public static long ZAddressOffsetMax; // Address space start/end/size ! public static Address ZAddressSpaceStart; static { VM.registerVMInitializedObserver((o, d) -> initialize(VM.getVM().getTypeDataBase())); }
*** 82,93 **** ZAddressOffsetShift = db.lookupLongConstant("ZAddressOffsetShift").longValue(); ZAddressOffsetBits = db.lookupLongConstant("ZAddressOffsetBits").longValue(); ZAddressOffsetMask = db.lookupLongConstant("ZAddressOffsetMask").longValue(); ! ZAddressSpaceStart = db.lookupLongConstant("ZAddressSpaceStart").longValue(); } private static ZGlobalsForVMStructs instance() { return new ZGlobalsForVMStructs(instanceField.getAddress()); } --- 84,97 ---- ZAddressOffsetShift = db.lookupLongConstant("ZAddressOffsetShift").longValue(); ZAddressOffsetBits = db.lookupLongConstant("ZAddressOffsetBits").longValue(); ZAddressOffsetMask = db.lookupLongConstant("ZAddressOffsetMask").longValue(); + ZAddressOffsetMax = db.lookupLongConstant("ZAddressOffsetMax").longValue(); ! ZAddressSpaceStart = VM.getVM().getDebugger().parseAddress( ! "0x" + Long.toUnsignedString(db.lookupLongConstant("ZAddressSpaceStart").longValue(), 16)); } private static ZGlobalsForVMStructs instance() { return new ZGlobalsForVMStructs(instanceField.getAddress()); }
< prev index next >