8181143: Introduce diagnostic flag to abort VM on too long VM operations

Reviewed-by: rkennke, zgu, dholmes, stuefe, rehn
This commit is contained in:
Aleksey Shipilev 2018-12-13 16:45:24 +01:00
parent 650f3fc113
commit 2278601b7c
4 changed files with 163 additions and 0 deletions

View file

@ -501,6 +501,13 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
diagnostic(bool, AbortVMOnSafepointTimeout, false, \
"Abort upon failure to reach safepoint (see SafepointTimeout)") \
\
diagnostic(bool, AbortVMOnVMOperationTimeout, false, \
"Abort upon failure to complete VM operation promptly") \
\
diagnostic(intx, AbortVMOnVMOperationTimeoutDelay, 1000, \
"Delay in milliseconds for option AbortVMOnVMOperationTimeout") \
range(0, max_intx) \
\
/* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \
/* typically, at most a few retries are needed */ \
product(intx, SuspendRetryCount, 50, \