< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/ContiguousSpace.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2015, 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) 2000, 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.
*** 30,40 **** 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 { private static AddressField topField; static { VM.registerVMInitializedObserver(new Observer() { public void update(Observable o, Object data) { --- 30,40 ---- 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 implements LiveRegionsProvider { private static AddressField topField; static { VM.registerVMInitializedObserver(new Observer() { public void update(Observable o, Object data) {
*** 77,88 **** public MemRegion usedRegion() { return new MemRegion(bottom(), top()); } /** Returns regions of Space where live objects live */ ! public List/*<MemRegion>*/ getLiveRegions() { ! List res = new ArrayList(); res.add(new MemRegion(bottom(), top())); return res; } /** Testers */ --- 77,88 ---- public MemRegion usedRegion() { return new MemRegion(bottom(), top()); } /** Returns regions of Space where live objects live */ ! public List<MemRegion> getLiveRegions() { ! List<MemRegion> res = new ArrayList<>(); res.add(new MemRegion(bottom(), top())); return res; } /** Testers */
< prev index next >