changeset 8472:1be53aada8de

8080446: The change for 8074354 removed the server check when creating minidumps on Windows Reviewed-by: sla, hseigel
author ctornqvi
date Mon, 01 Jun 2015 14:01:20 -0700
parents e236fc2b593e
children 0d3c3c622f96
files src/os/windows/vm/os_windows.cpp
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp	Fri May 29 09:48:58 2015 +0200
+++ b/src/os/windows/vm/os_windows.cpp	Mon Jun 01 14:01:20 2015 -0700
@@ -997,7 +997,16 @@
   if (!FLAG_IS_DEFAULT(CreateCoredumpOnCrash) && !CreateCoredumpOnCrash) {
     jio_snprintf(buffer, buffsz, "CreateCoredumpOnCrash is disabled from command line");
     status = false;
-  } else {
+  }
+
+#ifndef ASSERT
+  if (!os::win32::is_windows_server() && FLAG_IS_DEFAULT(CreateCoredumpOnCrash)) {
+    jio_snprintf(buffer, buffsz, "Minidumps are not enabled by default on client versions of Windows");
+    status = false;
+  }
+#endif
+
+  if (status) {
     const char* cwd = get_current_directory(NULL, 0);
     int pid = current_process_id();
     if (cwd != NULL) {