提交 2e93ae9c 编写于 作者: Z zgu

8213992: Rename and make DieOnSafepointTimeout the diagnostic option

Reviewed-by: dholmes, dcubed, coleenp, kvn
上级 f6a2b1ca
...@@ -768,8 +768,8 @@ class CommandLineFlags { ...@@ -768,8 +768,8 @@ class CommandLineFlags {
"Time out and warn or fail after SafepointTimeoutDelay " \ "Time out and warn or fail after SafepointTimeoutDelay " \
"milliseconds if failed to reach safepoint") \ "milliseconds if failed to reach safepoint") \
\ \
develop(bool, DieOnSafepointTimeout, false, \ diagnostic(bool, AbortVMOnSafepointTimeout, false, \
"Die upon failure to reach safepoint (see SafepointTimeout)") \ "Abort upon failure to reach safepoint (see SafepointTimeout)") \
\ \
/* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \
/* typically, at most a few retries are needed */ \ /* typically, at most a few retries are needed */ \
......
...@@ -790,9 +790,9 @@ void SafepointSynchronize::print_safepoint_timeout(SafepointTimeoutReason reason ...@@ -790,9 +790,9 @@ void SafepointSynchronize::print_safepoint_timeout(SafepointTimeoutReason reason
tty->print_cr("# SafepointSynchronize::begin: (End of list)"); 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. // ShowMessageBoxOnError.
if (DieOnSafepointTimeout) { if (AbortVMOnSafepointTimeout) {
char msg[1024]; char msg[1024];
VM_Operation *op = VMThread::vm_operation(); VM_Operation *op = VMThread::vm_operation();
sprintf(msg, "Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.", sprintf(msg, "Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册