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