< prev index next >
src/hotspot/share/gc/shared/genCollectedHeap.hpp
Print this page
@@ -29,10 +29,11 @@
#include "gc/shared/collectorPolicy.hpp"
#include "gc/shared/generation.hpp"
#include "gc/shared/softRefGenPolicy.hpp"
class AdaptiveSizePolicy;
+class GCPolicyCounters;
class GenerationSpec;
class StrongRootsScope;
class SubTasksDone;
class WorkGang;
@@ -78,10 +79,12 @@
SoftRefGenPolicy _soft_ref_gen_policy;
// The sizing of the heap is controlled by a sizing policy.
AdaptiveSizePolicy* _size_policy;
+ GCPolicyCounters* _gc_policy_counters;
+
// Indicates that the most recent previous incremental collection failed.
// The flag is cleared when an action is taken that might clear the
// condition that caused that incremental collection to fail.
bool _incremental_collection_failed;
@@ -153,11 +156,12 @@
// we absolutely __must__ clear soft refs?
bool must_clear_all_soft_refs();
GenCollectedHeap(GenCollectorPolicy *policy,
Generation::Name young,
- Generation::Name old);
+ Generation::Name old,
+ const char* policy_counters_name);
virtual void check_gen_kinds() = 0;
public:
@@ -193,10 +197,13 @@
// Adaptive size policy
virtual AdaptiveSizePolicy* size_policy() {
return _size_policy;
}
+ // Performance Counter support
+ GCPolicyCounters* counters() { return _gc_policy_counters; }
+
// Return the (conservative) maximum heap alignment
static size_t conservative_max_heap_alignment() {
return Generation::GenGrain;
}
< prev index next >