--- old/src/hotspot/share/gc/serial/serialHeap.cpp 2018-02-20 23:17:48.740892126 +0100 +++ new/src/hotspot/share/gc/serial/serialHeap.cpp 2018-02-20 23:17:48.512884332 +0100 @@ -26,10 +26,18 @@ #include "gc/serial/defNewGeneration.hpp" #include "gc/serial/serialHeap.hpp" #include "gc/shared/genMemoryPools.hpp" +#include "gc/shared/generationSpec.hpp" +#include "gc/shared/gcPolicyCounters.hpp" #include "services/memoryManager.hpp" -SerialHeap::SerialHeap(GenCollectorPolicy* policy) : - GenCollectedHeap(policy), _eden_pool(NULL), _survivor_pool(NULL), _old_pool(NULL) { +SerialHeap::SerialHeap(const SerialSettings& settings) : + GenCollectedHeap(settings, + Generation::DefNew, + Generation::MarkSweepCompact), + _settings(settings), + _eden_pool(NULL), + _survivor_pool(NULL), + _old_pool(NULL) { _young_manager = new GCMemoryManager("Copy", "end of minor GC"); _old_manager = new GCMemoryManager("MarkSweepCompact", "end of major GC"); } @@ -62,6 +70,10 @@ } +void SerialHeap::initialize_gc_policy_counters() { + initialize_gc_policy_counters_helper("Copy:MSC"); +} + void SerialHeap::check_gen_kinds() { assert(young_gen()->kind() == Generation::DefNew, "Wrong youngest generation type");