< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/ContiguousSpace.java
Print this page
@@ -30,11 +30,11 @@
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.memory.*;
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.types.*;
-public class ContiguousSpace extends CompactibleSpace {
+public class ContiguousSpace extends CompactibleSpace implements LiveRegionsProvider {
private static AddressField topField;
static {
VM.registerVMInitializedObserver(new Observer() {
public void update(Observable o, Object data) {
@@ -77,12 +77,12 @@
public MemRegion usedRegion() {
return new MemRegion(bottom(), top());
}
/** Returns regions of Space where live objects live */
- public List/*<MemRegion>*/ getLiveRegions() {
- List res = new ArrayList();
+ public List<MemRegion> getLiveRegions() {
+ List<MemRegion> res = new ArrayList<>();
res.add(new MemRegion(bottom(), top()));
return res;
}
/** Testers */
< prev index next >