< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/z/ZCollectedHeap.java
Print this page
*** 23,32 ****
--- 23,33 ----
*/
package sun.jvm.hotspot.gc.z;
import java.io.PrintStream;
+ import java.util.Iterator;
import sun.jvm.hotspot.debugger.Address;
import sun.jvm.hotspot.debugger.OopHandle;
import sun.jvm.hotspot.gc.shared.CollectedHeap;
import sun.jvm.hotspot.gc.shared.CollectedHeapName;
*** 119,131 ****
}
}
@Override
public void liveRegionsIterate(LiveRegionsClosure closure) {
! // Operation (currently) not supported with ZGC. Print
! // a warning and leave the list of live regions empty.
! System.err.println("Warning: Operation not supported with ZGC");
}
@Override
public BitMapInterface createBitMap(long size) {
// Ignores the size
--- 120,134 ----
}
}
@Override
public void liveRegionsIterate(LiveRegionsClosure closure) {
! Iterator<ZPage> iter = heap().pageTable().activePagesIterator();
! while (iter.hasNext()) {
! ZPage page = iter.next();
! closure.doLiveRegions(page);
! }
}
@Override
public BitMapInterface createBitMap(long size) {
// Ignores the size
< prev index next >