8080925: Make error log write timeout parameter configurable

Reviewed-by: sla, coleenp, ctornqvi, dholmes
This commit is contained in:
Thomas Stuefe 2015-06-26 08:29:29 +02:00
parent 1a534420a8
commit a88e8669c5
2 changed files with 5 additions and 1 deletions

View file

@ -1291,7 +1291,7 @@ void WatcherThread::run() {
if (!ShowMessageBoxOnError
&& (OnError == NULL || OnError[0] == '\0')
&& Arguments::abort_hook() == NULL) {
os::sleep(this, 2 * 60 * 1000, false);
os::sleep(this, ErrorLogTimeout * 60 * 1000, false);
fdStream err(defaultStream::output_fd());
err.print_raw_cr("# [ timer expired, abort... ]");
// skip atexit/vm_exit/vm_abort hooks