mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8141641: Runtime: implement range for ErrorLogTimeout
Implement range=(0, jlong_max/1000) Reviewed-by: coleenp, ddmitriev, dholmes
This commit is contained in:
parent
581c251007
commit
1777e00cca
3 changed files with 4 additions and 3 deletions
|
@ -1299,7 +1299,7 @@ void WatcherThread::run() {
|
|||
if (!ShowMessageBoxOnError
|
||||
&& (OnError == NULL || OnError[0] == '\0')
|
||||
&& Arguments::abort_hook() == NULL) {
|
||||
os::sleep(this, ErrorLogTimeout * 60 * 1000, false);
|
||||
os::sleep(this, (jlong)ErrorLogTimeout * 1000, false); // in seconds
|
||||
fdStream err(defaultStream::output_fd());
|
||||
err.print_raw_cr("# [ timer expired, abort... ]");
|
||||
// skip atexit/vm_exit/vm_abort hooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue