--- a/src/hotspot/share/gc/shared/collectorPolicy.cpp Thu Feb 22 18:36:32 2018 +0100
+++ b/src/hotspot/share/gc/shared/collectorPolicy.cpp Thu Feb 22 18:37:23 2018 +0100
@@ -170,9 +170,7 @@
_min_old_size(0),
_initial_old_size(0),
_max_old_size(0),
- _gen_alignment(0),
- _young_gen_spec(NULL),
- _old_gen_spec(NULL)
+ _gen_alignment(0)
{}
size_t GenCollectorPolicy::scale_by_NewRatio_aligned(size_t base_size) {
@@ -549,11 +547,6 @@
_heap_alignment = compute_heap_alignment();
}
-void MarkSweepPolicy::initialize_generations() {
- _young_gen_spec = new GenerationSpec(Generation::DefNew, _initial_young_size, _max_young_size, _gen_alignment);
- _old_gen_spec = new GenerationSpec(Generation::MarkSweepCompact, _initial_old_size, _max_old_size, _gen_alignment);
-}
-
void MarkSweepPolicy::initialize_gc_policy_counters() {
// Initialize the policy counters - 2 collectors, 2 generations.
_gc_policy_counters = new GCPolicyCounters("Copy:MSC", 2, 2);