< prev index next >

src/hotspot/share/gc/shared/referenceProcessor.cpp

Print this page
rev 52116 : 8212122: Allow ReferenceProcessor to always be MT processing

*** 1370,1391 **** RefProcMTDegreeAdjuster::RefProcMTDegreeAdjuster(ReferenceProcessor* rp, RefProcPhases phase, size_t ref_count): _rp(rp), - _saved_mt_processing(_rp->processing_is_mt()), _saved_num_queues(_rp->num_queues()) { if (!_rp->processing_is_mt() || !_rp->adjust_no_of_processing_threads() || (ReferencesPerThread == 0)) { return; } uint workers = ergo_proc_thread_count(ref_count, _rp->num_queues(), phase); - _rp->set_mt_processing(workers > 1); _rp->set_active_mt_degree(workers); } RefProcMTDegreeAdjuster::~RefProcMTDegreeAdjuster() { // Revert to previous status. - _rp->set_mt_processing(_saved_mt_processing); _rp->set_active_mt_degree(_saved_num_queues); } --- 1370,1388 ----
< prev index next >