src/hotspot/share/gc/g1/g1RemSet.cpp
changeset 48103 26dbe08d1c17
parent 47885 5caa1d5f74c1
child 48778 808555a54e9c
child 48950 f323537c9b75
--- a/src/hotspot/share/gc/g1/g1RemSet.cpp	Thu Nov 23 15:51:06 2017 +0100
+++ b/src/hotspot/share/gc/g1/g1RemSet.cpp	Thu Nov 23 15:51:06 2017 +0100
@@ -298,7 +298,7 @@
 }
 
 uint G1RemSet::num_par_rem_sets() {
-  return MAX2(DirtyCardQueueSet::num_par_ids() + G1ConcurrentRefine::thread_num(), ParallelGCThreads);
+  return MAX2(DirtyCardQueueSet::num_par_ids() + G1ConcurrentRefine::max_num_threads(), ParallelGCThreads);
 }
 
 void G1RemSet::initialize(size_t capacity, uint max_regions) {