8141641: Runtime: implement range for ErrorLogTimeout

Implement range=(0, jlong_max/1000)

Reviewed-by: coleenp, ddmitriev, dholmes
This commit is contained in:
Gerard Ziemski 2015-11-18 10:46:02 -06:00
parent 581c251007
commit 1777e00cca
3 changed files with 4 additions and 3 deletions

View file

@ -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