8155263: DisableStartThread should not be applied to GC worker threads

Reviewed-by: tschatzl, sangheki
This commit is contained in:
Jon Masamitsu 2016-07-06 13:23:10 -07:00
parent c6f30feaec
commit 631036a07b

View File

@ -43,7 +43,7 @@ void ConcurrentGCThread::create_and_start(ThreadPriority prio) {
// unless "aggressive mode" set; priority
// should be just less than that of VMThread.
os::set_priority(this, prio);
if (!_should_terminate && !DisableStartThread) {
if (!_should_terminate) {
os::start_thread(this);
}
}