Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/heapRegionSet.hpp @ 20304:a22acf6d7598
8048112: G1 Full GC needs to support the case when the very first region is not available
Summary: Refactor preparation for compaction during Full GC so that it lazily initializes the first compaction point. This also avoids problems later when the first region may not be committed. Also reviewed by K. Barrett.
Reviewed-by: brutisso
author | tschatzl |
---|---|
date | Mon, 21 Jul 2014 10:00:31 +0200 |
parents | 78bbf4d43a14 |
children | 6701abbc4441 |
comparison
equal
deleted
inserted
replaced
20303:c512f38a5139 | 20304:a22acf6d7598 |
---|---|
117 HeapRegionSetBase(const char* name, bool humongous, bool empty, HRSMtSafeChecker* mt_safety_checker); | 117 HeapRegionSetBase(const char* name, bool humongous, bool empty, HRSMtSafeChecker* mt_safety_checker); |
118 | 118 |
119 public: | 119 public: |
120 const char* name() { return _name; } | 120 const char* name() { return _name; } |
121 | 121 |
122 uint length() { return _count.length(); } | 122 uint length() const { return _count.length(); } |
123 | 123 |
124 bool is_empty() { return _count.length() == 0; } | 124 bool is_empty() { return _count.length() == 0; } |
125 | 125 |
126 size_t total_capacity_bytes() { | 126 size_t total_capacity_bytes() { |
127 return _count.capacity(); | 127 return _count.capacity(); |