src/hotspot/share/gc/g1/g1ConcurrentMarkThread.cpp
changeset 51332 c25572739e7c
parent 50097 ed8a43d83fcc
child 51835 b177af763b82
equal deleted inserted replaced
51331:7939b3c4e408 51332:c25572739e7c
    72 #undef CONCURRENT_PHASE_ENUM
    72 #undef CONCURRENT_PHASE_ENUM
    73     PHASE_ID_LIMIT
    73     PHASE_ID_LIMIT
    74   };
    74   };
    75 };
    75 };
    76 
    76 
    77 // The CM thread is created when the G1 garbage collector is used
       
    78 
       
    79 G1ConcurrentMarkThread::G1ConcurrentMarkThread(G1ConcurrentMark* cm) :
    77 G1ConcurrentMarkThread::G1ConcurrentMarkThread(G1ConcurrentMark* cm) :
    80   ConcurrentGCThread(),
    78   ConcurrentGCThread(),
       
    79   _vtime_start(0.0),
       
    80   _vtime_accum(0.0),
       
    81   _vtime_mark_accum(0.0),
    81   _cm(cm),
    82   _cm(cm),
    82   _state(Idle),
    83   _state(Idle),
    83   _phase_manager_stack(),
    84   _phase_manager_stack() {
    84   _vtime_accum(0.0),
       
    85   _vtime_mark_accum(0.0) {
       
    86 
    85 
    87   set_name("G1 Main Marker");
    86   set_name("G1 Main Marker");
    88   create_and_start();
    87   create_and_start();
    89 }
    88 }
    90 
    89