< prev index next >

src/hotspot/share/gc/z/zWorkers.cpp

Print this page

        

@@ -87,10 +87,14 @@
 
   log_info(gc, init)("Workers: %u parallel, %u concurrent", nparallel(), nconcurrent());
 
   // Initialize worker threads
   _workers.initialize_workers();
+  _workers.update_active_workers(nworkers());
+  if (_workers.active_workers() != nworkers()) {
+    vm_exit_during_initialization("Failed to create ZWorkers");
+  }
 
   // Warm up worker threads by having them execute a dummy task.
   // This helps reduce latency in early GC pauses, which otherwise
   // would have to take on any warmup costs.
   ZWorkersWarmupTask task(nworkers());
< prev index next >