5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP
27
28 #include "gc_implementation/g1/g1AllocationContext.hpp"
29 #include "gc_implementation/g1/g1Allocator.hpp"
30 #include "gc_implementation/g1/concurrentMark.hpp"
31 #include "gc_implementation/g1/evacuationInfo.hpp"
32 #include "gc_implementation/g1/g1AllocRegion.hpp"
33 #include "gc_implementation/g1/g1BiasedArray.hpp"
34 #include "gc_implementation/g1/g1HRPrinter.hpp"
35 #include "gc_implementation/g1/g1InCSetState.hpp"
36 #include "gc_implementation/g1/g1MonitoringSupport.hpp"
37 #include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp"
38 #include "gc_implementation/g1/g1YCTypes.hpp"
39 #include "gc_implementation/g1/heapRegionManager.hpp"
40 #include "gc_implementation/g1/heapRegionSet.hpp"
41 #include "gc_implementation/shared/hSpaceCounters.hpp"
42 #include "gc_interface/collectedHeap.hpp"
43 #include "memory/barrierSet.hpp"
44 #include "memory/memRegion.hpp"
45 #include "utilities/stack.hpp"
46
47 // A "G1CollectedHeap" is an implementation of a java heap for HotSpot.
48 // It uses the "Garbage First" heap organization and algorithm, which
49 // may combine concurrent marking with parallel, incremental compaction of
50 // heap subsets that will yield large amounts of garbage.
51
52 // Forward declarations
53 class HeapRegion;
54 class HRRSCleanupTask;
55 class GenerationSpec;
56 class OopsInHeapRegionClosure;
57 class G1KlassScanClosure;
58 class G1ParScanThreadState;
59 class ObjectClosure;
60 class SpaceClosure;
61 class CompactibleSpaceClosure;
62 class Space;
63 class G1CollectorPolicy;
1574 virtual void print_on_error(outputStream* st) const;
1575
1576 virtual void print_gc_threads_on(outputStream* st) const;
1577 virtual void gc_threads_do(ThreadClosure* tc) const;
1578
1579 // Override
1580 void print_tracing_info() const;
1581
1582 // The following two methods are helpful for debugging RSet issues.
1583 void print_cset_rsets() PRODUCT_RETURN;
1584 void print_all_rsets() PRODUCT_RETURN;
1585
1586 public:
1587 size_t pending_card_num();
1588 size_t cards_scanned();
1589
1590 protected:
1591 size_t _max_heap_capacity;
1592 };
1593
1594 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP
|
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_G1COLLECTEDHEAP_HPP
26 #define SHARE_VM_GC_G1_G1COLLECTEDHEAP_HPP
27
28 #include "gc/g1/concurrentMark.hpp"
29 #include "gc/g1/evacuationInfo.hpp"
30 #include "gc/g1/g1AllocRegion.hpp"
31 #include "gc/g1/g1AllocationContext.hpp"
32 #include "gc/g1/g1Allocator.hpp"
33 #include "gc/g1/g1BiasedArray.hpp"
34 #include "gc/g1/g1HRPrinter.hpp"
35 #include "gc/g1/g1InCSetState.hpp"
36 #include "gc/g1/g1MonitoringSupport.hpp"
37 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
38 #include "gc/g1/g1YCTypes.hpp"
39 #include "gc/g1/heapRegionManager.hpp"
40 #include "gc/g1/heapRegionSet.hpp"
41 #include "gc/shared/barrierSet.hpp"
42 #include "gc/shared/collectedHeap.hpp"
43 #include "gc/shared/hSpaceCounters.hpp"
44 #include "memory/memRegion.hpp"
45 #include "utilities/stack.hpp"
46
47 // A "G1CollectedHeap" is an implementation of a java heap for HotSpot.
48 // It uses the "Garbage First" heap organization and algorithm, which
49 // may combine concurrent marking with parallel, incremental compaction of
50 // heap subsets that will yield large amounts of garbage.
51
52 // Forward declarations
53 class HeapRegion;
54 class HRRSCleanupTask;
55 class GenerationSpec;
56 class OopsInHeapRegionClosure;
57 class G1KlassScanClosure;
58 class G1ParScanThreadState;
59 class ObjectClosure;
60 class SpaceClosure;
61 class CompactibleSpaceClosure;
62 class Space;
63 class G1CollectorPolicy;
1574 virtual void print_on_error(outputStream* st) const;
1575
1576 virtual void print_gc_threads_on(outputStream* st) const;
1577 virtual void gc_threads_do(ThreadClosure* tc) const;
1578
1579 // Override
1580 void print_tracing_info() const;
1581
1582 // The following two methods are helpful for debugging RSet issues.
1583 void print_cset_rsets() PRODUCT_RETURN;
1584 void print_all_rsets() PRODUCT_RETURN;
1585
1586 public:
1587 size_t pending_card_num();
1588 size_t cards_scanned();
1589
1590 protected:
1591 size_t _max_heap_capacity;
1592 };
1593
1594 #endif // SHARE_VM_GC_G1_G1COLLECTEDHEAP_HPP
|