mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8080925: Make error log write timeout parameter configurable
Reviewed-by: sla, coleenp, ctornqvi, dholmes
This commit is contained in:
parent
1a534420a8
commit
a88e8669c5
2 changed files with 5 additions and 1 deletions
|
@ -1026,6 +1026,10 @@ public:
|
||||||
product(bool, CreateCoredumpOnCrash, true, \
|
product(bool, CreateCoredumpOnCrash, true, \
|
||||||
"Create core/mini dump on VM fatal error") \
|
"Create core/mini dump on VM fatal error") \
|
||||||
\
|
\
|
||||||
|
product(uintx, ErrorLogTimeout, 2 * 60, \
|
||||||
|
"Timeout, in seconds, to limit the time spent on writing an " \
|
||||||
|
"error log in case of a crash.") \
|
||||||
|
\
|
||||||
product_pd(bool, UseOSErrorReporting, \
|
product_pd(bool, UseOSErrorReporting, \
|
||||||
"Let VM fatal error propagate to the OS (ie. WER on Windows)") \
|
"Let VM fatal error propagate to the OS (ie. WER on Windows)") \
|
||||||
\
|
\
|
||||||
|
|
|
@ -1291,7 +1291,7 @@ void WatcherThread::run() {
|
||||||
if (!ShowMessageBoxOnError
|
if (!ShowMessageBoxOnError
|
||||||
&& (OnError == NULL || OnError[0] == '\0')
|
&& (OnError == NULL || OnError[0] == '\0')
|
||||||
&& Arguments::abort_hook() == NULL) {
|
&& Arguments::abort_hook() == NULL) {
|
||||||
os::sleep(this, 2 * 60 * 1000, false);
|
os::sleep(this, ErrorLogTimeout * 60 * 1000, false);
|
||||||
fdStream err(defaultStream::output_fd());
|
fdStream err(defaultStream::output_fd());
|
||||||
err.print_raw_cr("# [ timer expired, abort... ]");
|
err.print_raw_cr("# [ timer expired, abort... ]");
|
||||||
// skip atexit/vm_exit/vm_abort hooks
|
// skip atexit/vm_exit/vm_abort hooks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue