< prev index next >

src/hotspot/share/gc/serial/serialHeap.cpp

Print this page

        

*** 24,37 **** #include "precompiled.hpp" #include "gc/serial/defNewGeneration.hpp" #include "gc/serial/serialHeap.hpp" #include "gc/shared/genMemoryPools.hpp" #include "services/memoryManager.hpp" ! SerialHeap::SerialHeap(GenCollectorPolicy* policy) : ! GenCollectedHeap(policy), _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"); } void SerialHeap::initialize_serviceability() { --- 24,45 ---- #include "precompiled.hpp" #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(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"); } void SerialHeap::initialize_serviceability() {
*** 60,69 **** --- 68,81 ---- _old_manager->add_pool(_old_pool); old->set_gc_manager(_old_manager); } + 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"); assert(old_gen()->kind() == Generation::MarkSweepCompact, "Wrong generation kind");
< prev index next >