< prev index next >
src/hotspot/share/gc/shared/referenceProcessor.hpp
Print this page
rev 52108 : 8212122: Allow ReferenceProcessor to always be MT processing
*** 425,434 ****
--- 425,435 ----
void set_mt_discovery(bool mt) { _discovery_is_mt = mt; }
// Whether we are in a phase when _processing_ is MT.
bool processing_is_mt() const { return _processing_is_mt; }
void set_mt_processing(bool mt) { _processing_is_mt = mt; }
+ virtual void adjust_mt_processing(uint num_workers) { set_mt_processing(num_workers > 1); }
// whether all enqueueing of weak references is complete
bool enqueuing_is_done() { return _enqueuing_is_done; }
void set_enqueuing_is_done(bool v) { _enqueuing_is_done = v; }
< prev index next >