< prev index next >

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

Print this page
rev 48259 : SA for GC - patch 2

@@ -25,10 +25,11 @@
 package sun.jvm.hotspot.gc.z;
 
 import sun.jvm.hotspot.debugger.Address;
 import sun.jvm.hotspot.runtime.VM;
 import sun.jvm.hotspot.runtime.VMObject;
+import sun.jvm.hotspot.runtime.VMObjectFactory;
 import sun.jvm.hotspot.types.Type;
 import sun.jvm.hotspot.types.TypeDataBase;
 
 class ZPageTable  extends VMObject {
     private static long mapFieldOffset;

@@ -42,11 +43,11 @@
 
         mapFieldOffset = type.getAddressField("_map").getOffset();
     }
 
     private ZAddressRangeMapForPageTable map() {
-        return new ZAddressRangeMapForPageTable(addr.addOffsetTo(mapFieldOffset));
+        return (ZAddressRangeMapForPageTable)VMObjectFactory.newObject(ZAddressRangeMapForPageTable.class, addr.addOffsetTo(mapFieldOffset));
     }
 
     private ZPageTableEntry getEntry(Address o) {
         return new ZPageTableEntry(map().get(o));
     }
< prev index next >