Lines Matching full:state
24 using State = PGOState::State; typedef
31 std::string PGOState::ToString(State state) in ToString() argument
33 switch (state) { in ToString()
34 case State::STOP: in ToString()
36 case State::SAVE: in ToString()
38 case State::START: in ToString()
45 std::string PGOState::ToString(GCState state) in ToString() argument
47 switch (state) { in ToString()
59 State PGOState::GetState() const in GetState()
64 void PGOState::SetState(State state) in SetState() argument
67 PrintStateChange(GetState(), state); in SetState()
69 state_.store(state, std::memory_order_release); in SetState()
92 State state = GetState(); in StateIsStop() local
93 return state == State::STOP; in StateIsStop()
98 State state = GetState(); in StateIsStart() local
99 return state == State::START; in StateIsStart()
104 State state = GetState(); in StateIsSave() local
105 return state == State::SAVE; in StateIsSave()
109 bool PGOState::TryChangeState(State expected, State desired) in TryChangeState()
122 bool PGOState::TryChangeState(State expected, State desired) in TryChangeState()
131 void PGOState::SetGCState(GCState state) in SetGCState() argument
133 gcState_.store(state, std::memory_order_release); in SetGCState()
144 // possible state: START, SAVE, STOP in SuspendByGC()
146 // possible gc state: STOP in SuspendByGC()
151 // possible gc state: STOP, WAITING in SuspendByGC()
158 // possible state: START, SAVE, STOP in ResumeByGC()
170 // possible state: STOP, SAVE in SetStartIfStop()
171 // possible gc state: STOP, WAITING, RUNNING in SetStartIfStop()
172 if (GCIsStop() && TryChangeState(State::STOP, State::START)) { in SetStartIfStop()
181 // possible state: START, SAVE in SetStopAndNotify()
182 SetState(State::STOP); in SetStopAndNotify()
189 // possible state: START in SetSaveAndNotify()
190 SetState(State::SAVE); in SetSaveAndNotify()
197 // possible state: STOP, SAVE, START in StartDumpBeforeDestroy()
198 // may notify after change to STOP and SAVE, we need to make sure state is STOP in StartDumpBeforeDestroy()
202 // possible gc state: STOP, WAITING, RUNNING in StartDumpBeforeDestroy()
206 SetState(State::START); in StartDumpBeforeDestroy()