src/hotspot/share/gc/parallel/gcTaskManager.cpp
changeset 51332 c25572739e7c
parent 50429 83aec1d357d4
child 52904 d2f118d3f8e7
--- a/src/hotspot/share/gc/parallel/gcTaskManager.cpp	Wed Aug 08 10:21:23 2018 +0800
+++ b/src/hotspot/share/gc/parallel/gcTaskManager.cpp	Wed Aug 08 15:31:06 2018 +0200
@@ -373,9 +373,9 @@
 //
 GCTaskManager::GCTaskManager(uint workers) :
   _workers(workers),
+  _created_workers(0),
   _active_workers(0),
-  _idle_workers(0),
-  _created_workers(0) {
+  _idle_workers(0) {
   initialize();
 }
 
@@ -962,7 +962,7 @@
   _wait_helper.notify();
 }
 
-WaitHelper::WaitHelper() : _should_wait(true), _monitor(MonitorSupply::reserve()) {
+WaitHelper::WaitHelper() : _monitor(MonitorSupply::reserve()), _should_wait(true) {
   if (TraceGCTaskManager) {
     tty->print_cr("[" INTPTR_FORMAT "]"
                   " WaitHelper::WaitHelper()"