src/hotspot/share/utilities/vmError.cpp
branchepsilon-gc-branch
changeset 56508 f67f588ebf15
parent 56448 76d86de267b9
parent 49922 3a64eea72624
child 56533 28a4f284ad83
--- a/src/hotspot/share/utilities/vmError.cpp	Thu Apr 26 19:32:01 2018 +0200
+++ b/src/hotspot/share/utilities/vmError.cpp	Thu May 03 09:43:47 2018 +0200
@@ -27,7 +27,7 @@
 #include "code/codeCache.hpp"
 #include "compiler/compileBroker.hpp"
 #include "compiler/disassembler.hpp"
-#include "gc/shared/collectedHeap.hpp"
+#include "gc/shared/gcConfig.hpp"
 #include "logging/logConfiguration.hpp"
 #include "memory/resourceArea.hpp"
 #include "prims/whitebox.hpp"
@@ -304,15 +304,6 @@
   st->print_cr("# This output file may be truncated or incomplete.");
 }
 
-static const char* gc_mode() {
-  if (UseG1GC)            return "g1 gc";
-  if (UseParallelGC)      return "parallel gc";
-  if (UseConcMarkSweepGC) return "concurrent mark sweep gc";
-  if (UseSerialGC)        return "serial gc";
-  if (UseEpsilonGC)       return "epsilon gc";
-  return "ERROR in GC mode";
-}
-
 static void report_vm_version(outputStream* st, char* buf, int buflen) {
    // VM version
    st->print_cr("#");
@@ -341,7 +332,7 @@
                  "", "",
 #endif
                  UseCompressedOops ? ", compressed oops" : "",
-                 gc_mode(),
+                 GCConfig::hs_err_name(),
                  Abstract_VM_Version::vm_platform_string()
                );
 }