8157373: Active workers should not be reset in AbstractWorkGang initialize()

Reviewed-by: kbarrett, tschatzl, jwilhelm
This commit is contained in:
Jon Masamitsu 2016-05-19 14:53:18 -07:00
parent 2899284bf6
commit 08962e6714

View File

@ -44,11 +44,6 @@ void AbstractWorkGang::initialize_workers() {
vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create GangWorker array.");
}
_active_workers = ParallelGCThreads;
if (UseDynamicNumberOfGCThreads && !FLAG_IS_CMDLINE(ParallelGCThreads)) {
_active_workers = 1U;
}
add_workers(true);
}