--- old/src/hotspot/share/gc/serial/serialHeap.cpp 2017-11-28 22:17:27.490538272 +0100 +++ new/src/hotspot/share/gc/serial/serialHeap.cpp 2017-11-28 22:17:27.074543195 +0100 @@ -34,18 +34,16 @@ _old_manager = new GCMemoryManager("MarkSweepCompact", "end of major GC"); } -jint SerialHeap::initialize() { - jint status = GenCollectedHeap::initialize(); - if (status != JNI_OK) return status; +void SerialHeap::initialize_serviceability() { DefNewGeneration* young = (DefNewGeneration*) young_gen(); // Add a memory pool for each space and young gen doesn't // support low memory detection as it is expected to get filled up. _eden_pool = new ContiguousSpacePool(young->eden(), - "Eden Space", - young->max_eden_size(), - false /* support_usage_threshold */); + "Eden Space", + young->max_eden_size(), + false /* support_usage_threshold */); _survivor_pool = new SurvivorContiguousSpacePool(young, "Survivor Space", young->max_survivor_size(), @@ -62,7 +60,6 @@ _old_manager->add_pool(_old_pool); old->set_gc_manager(_old_manager); - return JNI_OK; } void SerialHeap::check_gen_kinds() {