2037N/A/*
2590N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2037N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2037N/A *
2037N/A * This code is free software; you can redistribute it and/or modify it
2037N/A * under the terms of the GNU General Public License version 2 only, as
2037N/A * published by the Free Software Foundation.
2037N/A *
2037N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2037N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2037N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2037N/A * version 2 for more details (a copy is included in the LICENSE file that
2037N/A * accompanied this code).
2037N/A *
2037N/A * You should have received a copy of the GNU General Public License version
2037N/A * 2 along with this work; if not, write to the Free Software Foundation,
2037N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2037N/A *
2037N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2037N/A * or visit www.oracle.com if you need additional information or have any
2037N/A * questions.
2037N/A *
2037N/A */
2037N/A
2037N/A#ifndef SHARE_VM_GC_IMPLEMENTATION_G1_HEAPREGIONSETS_HPP
2037N/A#define SHARE_VM_GC_IMPLEMENTATION_G1_HEAPREGIONSETS_HPP
2037N/A
2037N/A#include "gc_implementation/g1/heapRegionSet.inline.hpp"
2037N/A
2037N/A//////////////////// FreeRegionList ////////////////////
2037N/A
2037N/Aclass FreeRegionList : public HeapRegionLinkedList {
2037N/Aprotected:
2037N/A virtual const char* verify_region_extra(HeapRegion* hr);
2037N/A
2037N/A virtual bool regions_humongous() { return false; }
2037N/A virtual bool regions_empty() { return true; }
2037N/A
2037N/Apublic:
2037N/A FreeRegionList(const char* name) : HeapRegionLinkedList(name) { }
2037N/A};
2037N/A
2037N/A//////////////////// MasterFreeRegionList ////////////////////
2037N/A
2037N/Aclass MasterFreeRegionList : public FreeRegionList {
2037N/Aprotected:
2602N/A virtual const char* verify_region_extra(HeapRegion* hr);
2037N/A virtual bool check_mt_safety();
2037N/A
2037N/Apublic:
2037N/A MasterFreeRegionList(const char* name) : FreeRegionList(name) { }
2037N/A};
2037N/A
2037N/A//////////////////// SecondaryFreeRegionList ////////////////////
2037N/A
2037N/Aclass SecondaryFreeRegionList : public FreeRegionList {
2037N/Aprotected:
2037N/A virtual bool check_mt_safety();
2037N/A
2037N/Apublic:
2037N/A SecondaryFreeRegionList(const char* name) : FreeRegionList(name) { }
2037N/A};
2037N/A
2910N/A//////////////////// OldRegionSet ////////////////////
2910N/A
2910N/Aclass OldRegionSet : public HeapRegionSet {
2910N/Aprotected:
2910N/A virtual const char* verify_region_extra(HeapRegion* hr);
2910N/A
2910N/A virtual bool regions_humongous() { return false; }
2910N/A virtual bool regions_empty() { return false; }
2910N/A
2910N/Apublic:
2910N/A OldRegionSet(const char* name) : HeapRegionSet(name) { }
2910N/A};
2910N/A
2910N/A//////////////////// MasterOldRegionSet ////////////////////
2910N/A
2910N/Aclass MasterOldRegionSet : public OldRegionSet {
2910N/Aprivate:
2910N/Aprotected:
2910N/A virtual bool check_mt_safety();
2910N/A
2910N/Apublic:
2910N/A MasterOldRegionSet(const char* name) : OldRegionSet(name) { }
2910N/A};
2910N/A
2037N/A//////////////////// HumongousRegionSet ////////////////////
2037N/A
2037N/Aclass HumongousRegionSet : public HeapRegionSet {
2037N/Aprotected:
2037N/A virtual const char* verify_region_extra(HeapRegion* hr);
2037N/A
2037N/A virtual bool regions_humongous() { return true; }
2037N/A virtual bool regions_empty() { return false; }
2037N/A
2037N/Apublic:
2037N/A HumongousRegionSet(const char* name) : HeapRegionSet(name) { }
2037N/A};
2037N/A
2037N/A//////////////////// MasterHumongousRegionSet ////////////////////
2037N/A
2037N/Aclass MasterHumongousRegionSet : public HumongousRegionSet {
2037N/Aprotected:
2037N/A virtual bool check_mt_safety();
2037N/A
2037N/Apublic:
2037N/A MasterHumongousRegionSet(const char* name) : HumongousRegionSet(name) { }
2037N/A};
2037N/A
2037N/A#endif // SHARE_VM_GC_IMPLEMENTATION_G1_HEAPREGIONSETS_HPP