8043575: Dynamically parallelize reference processing work

In G1 automatically set the number of parallel Reference processing threads

Co-authored-by: Sangheon Kim <sangheon.kim@oracle.com>
Reviewed-by: sangheki, kbarrett
This commit is contained in:
Thomas Schatzl 2018-06-18 12:11:59 +02:00
parent 1a0553e4eb
commit 7f9bbfa767
17 changed files with 216 additions and 69 deletions

View file

@ -852,7 +852,8 @@ void PSParallelCompact::post_initialize() {
true, // mt discovery
ParallelGCThreads, // mt discovery degree
true, // atomic_discovery
&_is_alive_closure); // non-header is alive closure
&_is_alive_closure, // non-header is alive closure
false); // disable adjusting number of processing threads
_counters = new CollectorCounters("PSParallelCompact", 1);
// Initialize static fields in ParCompactionManager.