equal
deleted
inserted
replaced
26 #define SHARE_VM_GC_G1_G1COLLECTEDHEAP_HPP |
26 #define SHARE_VM_GC_G1_G1COLLECTEDHEAP_HPP |
27 |
27 |
28 #include "gc/g1/evacuationInfo.hpp" |
28 #include "gc/g1/evacuationInfo.hpp" |
29 #include "gc/g1/g1AllocationContext.hpp" |
29 #include "gc/g1/g1AllocationContext.hpp" |
30 #include "gc/g1/g1BiasedArray.hpp" |
30 #include "gc/g1/g1BiasedArray.hpp" |
|
31 #include "gc/g1/g1CollectionSet.hpp" |
31 #include "gc/g1/g1CollectorState.hpp" |
32 #include "gc/g1/g1CollectorState.hpp" |
32 #include "gc/g1/g1ConcurrentMark.hpp" |
33 #include "gc/g1/g1ConcurrentMark.hpp" |
33 #include "gc/g1/g1HRPrinter.hpp" |
34 #include "gc/g1/g1HRPrinter.hpp" |
34 #include "gc/g1/g1InCSetState.hpp" |
35 #include "gc/g1/g1InCSetState.hpp" |
35 #include "gc/g1/g1MonitoringSupport.hpp" |
36 #include "gc/g1/g1MonitoringSupport.hpp" |
63 class G1ParScanThreadState; |
64 class G1ParScanThreadState; |
64 class ObjectClosure; |
65 class ObjectClosure; |
65 class SpaceClosure; |
66 class SpaceClosure; |
66 class CompactibleSpaceClosure; |
67 class CompactibleSpaceClosure; |
67 class Space; |
68 class Space; |
|
69 class G1CollectionSet; |
68 class G1CollectorPolicy; |
70 class G1CollectorPolicy; |
69 class G1RemSet; |
71 class G1RemSet; |
70 class HeapRegionRemSetIterator; |
72 class HeapRegionRemSetIterator; |
71 class G1ConcurrentMark; |
73 class G1ConcurrentMark; |
72 class ConcurrentMarkThread; |
74 class ConcurrentMarkThread; |
361 YoungList* _young_list; |
363 YoungList* _young_list; |
362 |
364 |
363 // The current policy object for the collector. |
365 // The current policy object for the collector. |
364 G1CollectorPolicy* _g1_policy; |
366 G1CollectorPolicy* _g1_policy; |
365 |
367 |
|
368 G1CollectionSet _collection_set; |
|
369 |
366 // This is the second level of trying to allocate a new region. If |
370 // This is the second level of trying to allocate a new region. If |
367 // new_region() didn't find a region on the free_list, this call will |
371 // new_region() didn't find a region on the free_list, this call will |
368 // check whether there's anything available on the |
372 // check whether there's anything available on the |
369 // secondary_free_list and/or wait for more regions to appear on |
373 // secondary_free_list and/or wait for more regions to appear on |
370 // that list, if _free_regions_coming is set. |
374 // that list, if _free_regions_coming is set. |
983 G1CollectorState* collector_state() { return &_collector_state; } |
987 G1CollectorState* collector_state() { return &_collector_state; } |
984 |
988 |
985 // The current policy object for the collector. |
989 // The current policy object for the collector. |
986 G1CollectorPolicy* g1_policy() const { return _g1_policy; } |
990 G1CollectorPolicy* g1_policy() const { return _g1_policy; } |
987 |
991 |
|
992 const G1CollectionSet* collection_set() const { return &_collection_set; } |
|
993 G1CollectionSet* collection_set() { return &_collection_set; } |
|
994 |
988 virtual CollectorPolicy* collector_policy() const; |
995 virtual CollectorPolicy* collector_policy() const; |
989 |
996 |
990 // Adaptive size policy. No such thing for g1. |
997 // Adaptive size policy. No such thing for g1. |
991 virtual AdaptiveSizePolicy* size_policy() { return NULL; } |
998 virtual AdaptiveSizePolicy* size_policy() { return NULL; } |
992 |
999 |