hotspot/src/os/windows/vm/os_windows.cpp
changeset 31025 5cc170f4923d
parent 30863 6a99d43b04e5
child 31026 b87ccf34b54c
equal deleted inserted replaced
31024:b619cc1d6ea6 31025:5cc170f4923d
   995 void os::check_dump_limit(char* buffer, size_t buffsz) {
   995 void os::check_dump_limit(char* buffer, size_t buffsz) {
   996   bool status = true;
   996   bool status = true;
   997   if (!FLAG_IS_DEFAULT(CreateCoredumpOnCrash) && !CreateCoredumpOnCrash) {
   997   if (!FLAG_IS_DEFAULT(CreateCoredumpOnCrash) && !CreateCoredumpOnCrash) {
   998     jio_snprintf(buffer, buffsz, "CreateCoredumpOnCrash is disabled from command line");
   998     jio_snprintf(buffer, buffsz, "CreateCoredumpOnCrash is disabled from command line");
   999     status = false;
   999     status = false;
  1000   } else {
  1000   }
       
  1001 
       
  1002 #ifndef ASSERT
       
  1003   if (!os::win32::is_windows_server() && FLAG_IS_DEFAULT(CreateCoredumpOnCrash)) {
       
  1004     jio_snprintf(buffer, buffsz, "Minidumps are not enabled by default on client versions of Windows");
       
  1005     status = false;
       
  1006   }
       
  1007 #endif
       
  1008 
       
  1009   if (status) {
  1001     const char* cwd = get_current_directory(NULL, 0);
  1010     const char* cwd = get_current_directory(NULL, 0);
  1002     int pid = current_process_id();
  1011     int pid = current_process_id();
  1003     if (cwd != NULL) {
  1012     if (cwd != NULL) {
  1004       jio_snprintf(buffer, buffsz, "%s\\hs_err_pid%u.mdmp", cwd, pid);
  1013       jio_snprintf(buffer, buffsz, "%s\\hs_err_pid%u.mdmp", cwd, pid);
  1005     } else {
  1014     } else {