< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/g1/PrintRegionClosure.java
Print this page
rev 56812 : imported patch 8189737-stefanj-review
*** 1,7 ****
/*
! * Copyright (c) 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2018, 2019, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 20,40 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! package sun.jvm.hotspot.gc.shared;
import java.io.PrintStream;
import sun.jvm.hotspot.gc.g1.HeapRegion;
! public class PrintRegionClosure implements SpaceClosure {
private PrintStream tty;
public PrintRegionClosure(PrintStream tty) {
this.tty = tty;
}
! public void doSpace(Space hr) {
! ((HeapRegion)hr).printOn(tty);
}
}
--- 20,40 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! package sun.jvm.hotspot.gc.g1;
import java.io.PrintStream;
import sun.jvm.hotspot.gc.g1.HeapRegion;
! public class PrintRegionClosure implements HeapRegionClosure {
private PrintStream tty;
public PrintRegionClosure(PrintStream tty) {
this.tty = tty;
}
! public void doHeapRegion(HeapRegion hr) {
! hr.printOn(tty);
}
}
< prev index next >