--- a/src/hotspot/share/gc/serial/serialHeap.cpp Thu Feb 22 18:36:32 2018 +0100
+++ b/src/hotspot/share/gc/serial/serialHeap.cpp Thu Feb 22 18:37:23 2018 +0100
@@ -29,7 +29,12 @@
#include "services/memoryManager.hpp"
SerialHeap::SerialHeap(GenCollectorPolicy* policy) :
- GenCollectedHeap(policy), _eden_pool(NULL), _survivor_pool(NULL), _old_pool(NULL) {
+ GenCollectedHeap(policy,
+ Generation::DefNew,
+ Generation::MarkSweepCompact),
+ _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");
}