From 2e93ae9c307ce2f4f8bcc2c0b49115083d244ffc Mon Sep 17 00:00:00 2001 From: zgu Date: Wed, 5 Dec 2018 16:59:12 -0500 Subject: [PATCH] 8213992: Rename and make DieOnSafepointTimeout the diagnostic option Reviewed-by: dholmes, dcubed, coleenp, kvn --- src/share/vm/runtime/globals.hpp | 4 ++-- src/share/vm/runtime/safepoint.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/share/vm/runtime/globals.hpp b/src/share/vm/runtime/globals.hpp index 5b449558d..421a3ba13 100644 --- a/src/share/vm/runtime/globals.hpp +++ b/src/share/vm/runtime/globals.hpp @@ -768,8 +768,8 @@ class CommandLineFlags { "Time out and warn or fail after SafepointTimeoutDelay " \ "milliseconds if failed to reach safepoint") \ \ - develop(bool, DieOnSafepointTimeout, false, \ - "Die upon failure to reach safepoint (see SafepointTimeout)") \ + diagnostic(bool, AbortVMOnSafepointTimeout, false, \ + "Abort upon failure to reach safepoint (see SafepointTimeout)") \ \ /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ /* typically, at most a few retries are needed */ \ diff --git a/src/share/vm/runtime/safepoint.cpp b/src/share/vm/runtime/safepoint.cpp index 1d75cae87..be4bb457a 100644 --- a/src/share/vm/runtime/safepoint.cpp +++ b/src/share/vm/runtime/safepoint.cpp @@ -790,9 +790,9 @@ void SafepointSynchronize::print_safepoint_timeout(SafepointTimeoutReason reason tty->print_cr("# SafepointSynchronize::begin: (End of list)"); } - // To debug the long safepoint, specify both DieOnSafepointTimeout & + // To debug the long safepoint, specify both AbortVMOnSafepointTimeout & // ShowMessageBoxOnError. - if (DieOnSafepointTimeout) { + if (AbortVMOnSafepointTimeout) { char msg[1024]; VM_Operation *op = VMThread::vm_operation(); sprintf(msg, "Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.", -- GitLab