--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeap.java 2018-01-17 11:44:04.691432624 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeap.java 2018-01-17 11:44:04.551430234 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -75,6 +75,16 @@ public abstract CollectedHeapName kind(); + public OopHandle oop_load_at(OopHandle handle, long offset) { + return VM.getVM().isCompressedOopsEnabled() + ? handle.getCompOopHandleAt(offset) + : handle.getOopHandleAt(offset); + } + + public String oopAddressDescription(OopHandle handle) { + return handle.toString(); + } + public void print() { printOn(System.out); } public void printOn(PrintStream tty) { MemRegion mr = reservedRegion();