8261768: SelfDestructTimer should accept seconds
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
bc0379ea1a
commit
0b3d409540
src/hotspot/share/runtime
@ -1291,10 +1291,11 @@ const intx ObjectAlignmentInBytes = 8;
|
||||
develop(bool, DebugDeoptimization, false, \
|
||||
"Tracing various information while debugging deoptimization") \
|
||||
\
|
||||
product(intx, SelfDestructTimer, 0, \
|
||||
"Will cause VM to terminate after a given time (in minutes) " \
|
||||
"(0 means off)") \
|
||||
range(0, max_intx) \
|
||||
product(double, SelfDestructTimer, 0.0, \
|
||||
"Will cause VM to terminate after a given time " \
|
||||
"(in fractional minutes) " \
|
||||
"(0.0 means off)") \
|
||||
range(0.0, (double)max_intx) \
|
||||
\
|
||||
product(intx, MaxJavaStackTraceDepth, 1024, \
|
||||
"The maximum number of lines in the stack trace for Java " \
|
||||
|
@ -382,8 +382,8 @@ void VMThread::wait_until_executed(VM_Operation* op) {
|
||||
|
||||
static void self_destruct_if_needed() {
|
||||
// Support for self destruction
|
||||
if ((SelfDestructTimer != 0) && !VMError::is_error_reported() &&
|
||||
(os::elapsedTime() > (double)SelfDestructTimer * 60.0)) {
|
||||
if ((SelfDestructTimer != 0.0) && !VMError::is_error_reported() &&
|
||||
(os::elapsedTime() > SelfDestructTimer * 60.0)) {
|
||||
tty->print_cr("VM self-destructed");
|
||||
exit(-1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user