< prev index next >
src/share/vm/gc/shared/concurrentGCThread.cpp
Print this page
rev 9995 : 8136854: G1 ConcurrentG1RefineThread::stop delays JVM shutdown for >150ms
Summary: Decrease the default wait delay for mark thread initialization to accomodate very short running applications.
Reviewed-by:
*** 1,7 ****
/*
! * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 58,68 ****
}
void ConcurrentGCThread::wait_for_universe_init() {
MutexLockerEx x(CGC_lock, Mutex::_no_safepoint_check_flag);
while (!is_init_completed() && !_should_terminate) {
! CGC_lock->wait(Mutex::_no_safepoint_check_flag, 200);
}
}
void ConcurrentGCThread::terminate() {
assert(_should_terminate, "Should only be called on terminate request.");
--- 58,68 ----
}
void ConcurrentGCThread::wait_for_universe_init() {
MutexLockerEx x(CGC_lock, Mutex::_no_safepoint_check_flag);
while (!is_init_completed() && !_should_terminate) {
! CGC_lock->wait(Mutex::_no_safepoint_check_flag, 1);
}
}
void ConcurrentGCThread::terminate() {
assert(_should_terminate, "Should only be called on terminate request.");
< prev index next >