Lines Matching full:state
22 using State = PGOState::State; typedef
29 std::string PGOState::ToString(State state) in ToString() argument
31 switch (state) { in ToString()
32 case State::STOP: in ToString()
34 case State::SAVE: in ToString()
36 case State::START: in ToString()
43 std::string PGOState::ToString(GCState state) in ToString() argument
45 switch (state) { in ToString()
57 State PGOState::GetState() const in GetState()
62 void PGOState::SetState(State state) in SetState() argument
65 PrintStateChange(GetState(), state); in SetState()
67 state_.store(state, std::memory_order_release); in SetState()
90 State state = GetState(); in StateIsStop() local
91 return state == State::STOP; in StateIsStop()
96 State state = GetState(); in StateIsStart() local
97 return state == State::START; in StateIsStart()
102 State state = GetState(); in StateIsSave() local
103 return state == State::SAVE; in StateIsSave()
107 bool PGOState::TryChangeState(State expected, State desired) in TryChangeState()
120 bool PGOState::TryChangeState(State expected, State desired) in TryChangeState()
129 void PGOState::SetGCState(GCState state) in SetGCState() argument
131 gcState_.store(state, std::memory_order_release); in SetGCState()
142 // possible state: START, SAVE, STOP in SuspendByGC()
144 // possible gc state: STOP in SuspendByGC()
149 // possible gc state: STOP, WAITING in SuspendByGC()
156 // possible state: START, SAVE, STOP in ResumeByGC()
168 // possible state: STOP, SAVE in SetStartIfStop()
169 // possible gc state: STOP, WAITING, RUNNING in SetStartIfStop()
170 if (GCIsStop() && TryChangeState(State::STOP, State::START)) { in SetStartIfStop()
179 // possible state: START, SAVE in SetStopAndNotify()
180 SetState(State::STOP); in SetStopAndNotify()
187 // possible state: START in SetSaveAndNotify()
188 SetState(State::SAVE); in SetSaveAndNotify()
195 // possible state: STOP, SAVE, START in StartDumpBeforeDestroy()
196 // may notify after change to STOP and SAVE, we need to make sure state is STOP in StartDumpBeforeDestroy()
200 // possible gc state: STOP, WAITING, RUNNING in StartDumpBeforeDestroy()
204 SetState(State::START); in StartDumpBeforeDestroy()