--- a/src/hotspot/share/gc/shared/genCollectedHeap.hpp Thu May 02 10:38:00 2019 +0200
+++ b/src/hotspot/share/gc/shared/genCollectedHeap.hpp Mon Apr 15 11:47:46 2019 +0200
@@ -26,12 +26,12 @@
#define SHARE_GC_SHARED_GENCOLLECTEDHEAP_HPP
#include "gc/shared/collectedHeap.hpp"
-#include "gc/shared/collectorPolicy.hpp"
#include "gc/shared/generation.hpp"
#include "gc/shared/oopStorageParState.hpp"
#include "gc/shared/softRefGenPolicy.hpp"
class AdaptiveSizePolicy;
+class CardTableRS;
class GCPolicyCounters;
class GenerationSpec;
class StrongRootsScope;
@@ -41,7 +41,6 @@
// A "GenCollectedHeap" is a CollectedHeap that uses generational
// collection. It has two generations, young and old.
class GenCollectedHeap : public CollectedHeap {
- friend class GenCollectorPolicy;
friend class Generation;
friend class DefNewGeneration;
friend class TenuredGeneration;
@@ -75,9 +74,6 @@
// The singleton CardTable Remembered Set.
CardTableRS* _rem_set;
- // The generational collector policy.
- GenCollectorPolicy* _gen_policy;
-
SoftRefGenPolicy _soft_ref_gen_policy;
// The sizing of the heap is controlled by a sizing policy.
@@ -159,8 +155,7 @@
// we absolutely __must__ clear soft refs?
bool must_clear_all_soft_refs();
- GenCollectedHeap(GenCollectorPolicy *policy,
- Generation::Name young,
+ GenCollectedHeap(Generation::Name young,
Generation::Name old,
const char* policy_counters_name);
@@ -186,11 +181,6 @@
GenerationSpec* young_gen_spec() const;
GenerationSpec* old_gen_spec() const;
- // The generational collector policy.
- GenCollectorPolicy* gen_policy() const { return _gen_policy; }
-
- virtual CollectorPolicy* collector_policy() const { return gen_policy(); }
-
virtual SoftRefPolicy* soft_ref_policy() { return &_soft_ref_gen_policy; }
// Adaptive size policy
@@ -201,11 +191,6 @@
// 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;
- }
-
size_t capacity() const;
size_t used() const;