Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/heapRegionSets.hpp @ 4072:8aae2050e83e
7092309: G1: introduce old region set
Summary: Keep track of all the old regions in the heap with a heap region set.
Reviewed-by: brutisso, johnc
author | tonyp |
---|---|
date | Mon, 07 Nov 2011 22:11:12 -0500 |
parents | e8b0b0392037 |
children |
comparison
equal
deleted
inserted
replaced
4071:ed80554efa25 | 4072:8aae2050e83e |
---|---|
59 | 59 |
60 public: | 60 public: |
61 SecondaryFreeRegionList(const char* name) : FreeRegionList(name) { } | 61 SecondaryFreeRegionList(const char* name) : FreeRegionList(name) { } |
62 }; | 62 }; |
63 | 63 |
64 //////////////////// OldRegionSet //////////////////// | |
65 | |
66 class OldRegionSet : public HeapRegionSet { | |
67 protected: | |
68 virtual const char* verify_region_extra(HeapRegion* hr); | |
69 | |
70 virtual bool regions_humongous() { return false; } | |
71 virtual bool regions_empty() { return false; } | |
72 | |
73 public: | |
74 OldRegionSet(const char* name) : HeapRegionSet(name) { } | |
75 }; | |
76 | |
77 //////////////////// MasterOldRegionSet //////////////////// | |
78 | |
79 class MasterOldRegionSet : public OldRegionSet { | |
80 private: | |
81 protected: | |
82 virtual bool check_mt_safety(); | |
83 | |
84 public: | |
85 MasterOldRegionSet(const char* name) : OldRegionSet(name) { } | |
86 }; | |
87 | |
64 //////////////////// HumongousRegionSet //////////////////// | 88 //////////////////// HumongousRegionSet //////////////////// |
65 | 89 |
66 class HumongousRegionSet : public HeapRegionSet { | 90 class HumongousRegionSet : public HeapRegionSet { |
67 protected: | 91 protected: |
68 virtual const char* verify_region_extra(HeapRegion* hr); | 92 virtual const char* verify_region_extra(HeapRegion* hr); |