mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8080446: The change for 8074354 removed the server check when creating minidumps on Windows
Reviewed-by: sla, hseigel
This commit is contained in:
parent
b1388f39a9
commit
3c90d44e1a
1 changed files with 10 additions and 1 deletions
|
@ -997,7 +997,16 @@ void os::check_dump_limit(char* buffer, size_t buffsz) {
|
|||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue