src/hotspot/share/gc/g1/g1RemSetSummary.cpp
changeset 48196 5ee29f4ec472
parent 48103 26dbe08d1c17
child 48889 216c2aabbf1f
--- a/src/hotspot/share/gc/g1/g1RemSetSummary.cpp	Wed Dec 06 15:14:13 2017 -0800
+++ b/src/hotspot/share/gc/g1/g1RemSetSummary.cpp	Sat Dec 02 06:51:10 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();