< prev index next >
src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp
Print this page
rev 52628 : changes for full GC
@@ -60,10 +60,13 @@
static PSAdaptiveSizePolicy* _size_policy;
static PSGCAdaptivePolicyCounters* _gc_policy_counters;
GenerationSizer* _collector_policy;
+ // is the heap backed by two different memories?
+ bool _is_hetero_heap;
+
SoftRefPolicy _soft_ref_policy;
// Collection of generations that are adjacent in the
// space reserved for the heap.
AdjoiningGenerations* _gens;
@@ -91,11 +94,11 @@
inline void death_march_check(HeapWord* const result, size_t size);
HeapWord* mem_allocate_old_gen(size_t size);
public:
ParallelScavengeHeap(GenerationSizer* policy) :
- CollectedHeap(), _collector_policy(policy), _death_march_count(0) { }
+ CollectedHeap(), _collector_policy(policy), _is_hetero_heap(false), _death_march_count(0) { }
// For use by VM operations
enum CollectionType {
Scavenge,
MarkSweep
@@ -145,10 +148,13 @@
// Return the (conservative) maximum heap alignment
static size_t conservative_max_heap_alignment() {
return CollectorPolicy::compute_heap_alignment();
}
+ // is the heap backed by two different memories?
+ bool is_hetero_heap() { return _is_hetero_heap; }
+
size_t capacity() const;
size_t used() const;
// Return "true" if all generations have reached the
// maximal committed limit that they can reach, without a garbage
< prev index next >