mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8213992: Rename and make DieOnSafepointTimeout the diagnostic option
Reviewed-by: dholmes, dcubed, coleenp, kvn
This commit is contained in:
parent
521da29e44
commit
a264dac26c
2 changed files with 4 additions and 4 deletions
|
@ -498,8 +498,8 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
|
||||||
"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 */ \
|
||||||
|
|
|
@ -978,9 +978,9 @@ void SafepointSynchronize::print_safepoint_timeout(SafepointTimeoutReason reason
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// To debug the long safepoint, specify both DieOnSafepointTimeout &
|
// To debug the long safepoint, specify both AbortVMOnSafepointTimeout &
|
||||||
// ShowMessageBoxOnError.
|
// ShowMessageBoxOnError.
|
||||||
if (DieOnSafepointTimeout) {
|
if (AbortVMOnSafepointTimeout) {
|
||||||
fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.",
|
fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.",
|
||||||
SafepointTimeoutDelay, VMThread::vm_safepoint_description());
|
SafepointTimeoutDelay, VMThread::vm_safepoint_description());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue