8150984: Invalid VM argument causes crash -XX:G1ConcRefinementServiceIntervalMillis=2147483648

Change maximum range so it can't be negative

Reviewed-by: kbarrett, sangheki
This commit is contained in:
Joseph Provino 2016-03-03 12:20:22 -05:00
parent 12d9b13eee
commit 7c23a31489
3 changed files with 6 additions and 6 deletions

View file

@ -70,7 +70,7 @@ G1YoungRemSetSamplingThread::G1YoungRemSetSamplingThread() :
void G1YoungRemSetSamplingThread::sleep_before_next_cycle() {
MutexLockerEx x(&_monitor, Mutex::_no_safepoint_check_flag);
if (!_should_terminate) {
intx waitms = G1ConcRefinementServiceIntervalMillis; // 300, really should be?
uintx waitms = G1ConcRefinementServiceIntervalMillis; // 300, really should be?
_monitor.wait(Mutex::_no_safepoint_check_flag, waitms);
}
}