src/hotspot/share/gc/g1/g1RemSetSummary.cpp
changeset 48103 26dbe08d1c17
parent 47885 5caa1d5f74c1
child 48889 216c2aabbf1f
--- a/src/hotspot/share/gc/g1/g1RemSetSummary.cpp	Thu Nov 23 15:51:06 2017 +0100
+++ b/src/hotspot/share/gc/g1/g1RemSetSummary.cpp	Thu Nov 23 15:51:06 2017 +0100
@@ -86,7 +86,7 @@
   _num_processed_buf_mutator(0),
   _num_processed_buf_rs_threads(0),
   _num_coarsenings(0),
-  _num_vtimes(G1ConcurrentRefine::thread_num()),
+  _num_vtimes(G1ConcurrentRefine::max_num_threads()),
   _rs_threads_vtimes(NEW_C_HEAP_ARRAY(double, _num_vtimes, mtGC)),
   _sampling_thread_vtime(0.0f) {
 
@@ -99,7 +99,7 @@
   _num_processed_buf_mutator(0),
   _num_processed_buf_rs_threads(0),
   _num_coarsenings(0),
-  _num_vtimes(G1ConcurrentRefine::thread_num()),
+  _num_vtimes(G1ConcurrentRefine::max_num_threads()),
   _rs_threads_vtimes(NEW_C_HEAP_ARRAY(double, _num_vtimes, mtGC)),
   _sampling_thread_vtime(0.0f) {
   update();