diff -r d241c747e6b3 -r 97a537c6526e hotspot/src/share/vm/memory/universe.cpp --- a/hotspot/src/share/vm/memory/universe.cpp Mon Apr 20 16:18:02 2015 +0200 +++ b/hotspot/src/share/vm/memory/universe.cpp Mon Apr 20 08:53:08 2015 +0200 @@ -714,7 +714,6 @@ fatal("UseG1GC not supported in this VM."); } else if (UseConcMarkSweepGC) { fatal("UseConcMarkSweepGC not supported in this VM."); - } #else if (UseParallelGC) { status = Universe::create_heap(); @@ -722,12 +721,11 @@ status = Universe::create_heap(); } else if (UseConcMarkSweepGC) { status = Universe::create_heap(); - } #endif - else { // UseSerialGC - // Don't assert that UseSerialGC is set here because there are cases - // where no GC it set and we then fall back to using SerialGC. + } else if (UseSerialGC) { status = Universe::create_heap(); + } else { + ShouldNotReachHere(); } if (status != JNI_OK) {