8080879: Remove FlexibleWorkGang::set_for_termination

Reviewed-by: brutisso, kbarrett, pliden
This commit is contained in:
Stefan Karlsson 2015-05-25 11:41:34 +02:00
parent b04d2bca57
commit f3f59e37c9
7 changed files with 17 additions and 41 deletions

View file

@ -576,12 +576,6 @@ ParNewGenTask::ParNewGenTask(ParNewGeneration* gen, Generation* old_gen,
_strong_roots_scope(strong_roots_scope)
{}
// Reset the terminator for the given number of
// active threads.
void ParNewGenTask::set_for_termination(uint active_workers) {
_state_set->reset(active_workers, _gen->promotion_failed());
}
void ParNewGenTask::work(uint worker_id) {
GenCollectedHeap* gch = GenCollectedHeap::heap();
// Since this is being done in a separate thread, need new resource
@ -757,9 +751,6 @@ public:
private:
virtual void work(uint worker_id);
virtual void set_for_termination(uint active_workers) {
_state_set.terminator()->reset_for_reuse(active_workers);
}
private:
ParNewGeneration& _gen;
ProcessTask& _task;
@ -949,6 +940,8 @@ void ParNewGeneration::collect(bool full,
*to(), *this, *_old_gen, *task_queues(),
_overflow_stacks, desired_plab_sz(), _term);
thread_state_set.reset(n_workers, promotion_failed());
{
StrongRootsScope srs(n_workers);