• Home
  • Raw
  • Download

Lines Matching full:state

137  * @return      state of function execution (ok, illegal)
139 Monitor::State Monitor::MonitorEnter(ObjectHeader *obj, bool trylock) in MonitorEnter()
154 MarkWord::ObjectState state = mark.GetState(); in MonitorEnter() local
156 …UG, RUNTIME) << "Try to enter monitor " << std::hex << obj << " with state " << std::dec << state; in MonitorEnter()
158 switch (state) { in MonitorEnter()
163 return State::ILLEGAL; in MonitorEnter()
169 return ret ? State::OK : State::ILLEGAL; in MonitorEnter()
183 return State::OK; in MonitorEnter()
192 return State::ILLEGAL; in MonitorEnter()
219 return State::ILLEGAL; in MonitorEnter()
227 return State::OK; in MonitorEnter()
231 return State::ILLEGAL; in MonitorEnter()
239 return State::OK; in MonitorEnter()
243 return State::ILLEGAL; in MonitorEnter()
257 return State::OK; in MonitorEnter()
261 return State::ILLEGAL; in MonitorEnter()
267 return State::ILLEGAL; in MonitorEnter()
269 LOG(FATAL, RUNTIME) << "Undefined object state"; in MonitorEnter()
270 return State::ILLEGAL; in MonitorEnter()
275 Monitor::State Monitor::MonitorExit(ObjectHeader *obj) in MonitorExit()
283 MarkWord::ObjectState state = mark.GetState(); in MonitorExit() local
284 …BUG, RUNTIME) << "Try to exit monitor " << std::hex << obj << " with state " << std::dec << state; in MonitorExit()
285 switch (state) { in MonitorExit()
292 return ret ? State::OK : State::ILLEGAL; in MonitorExit()
297 return State::ILLEGAL; in MonitorExit()
311 return State::OK; in MonitorExit()
318 LOG(ERROR, RUNTIME) << "Try to perform monitor exit from unlocked state"; in MonitorExit()
319 return State::ILLEGAL; in MonitorExit()
322 return State::ILLEGAL; in MonitorExit()
324 LOG(FATAL, RUNTIME) << "Undefined object state"; in MonitorExit()
325 return State::ILLEGAL; in MonitorExit()
332 Monitor::State Monitor::Wait(ObjectHeader *obj, ThreadStatus status, uint64_t timeout, uint64_t nan… in Wait()
338 State result_state = State::OK; in Wait()
349 MarkWord::ObjectState state = mark.GetState(); in Wait() local
350 LOG(DEBUG, RUNTIME) << "Try to wait with state " << state; in Wait()
351 switch (state) { in Wait()
358 … LOG(ERROR, RUNTIME) << "Illegal monitor state: try to wait with monitor acquired by other thread"; in Wait()
359 return State::ILLEGAL; in Wait()
366 return State::INTERRUPTED; in Wait()
404 result_state = State::INTERRUPTED; in Wait()
425 … LOG(FATAL, RUNTIME) << "Illegal monitor state: try to wait with monitor acquired by other thread"; in Wait()
434 LOG(ERROR, RUNTIME) << "Try to perform Wait from unsupported state"; in Wait()
435 return State::ILLEGAL; in Wait()
437 LOG(FATAL, RUNTIME) << "Undefined object state"; in Wait()
443 Monitor::State Monitor::Notify(ObjectHeader *obj) in Notify()
447 MarkWord::ObjectState state = mark.GetState(); in Notify() local
449 LOG(DEBUG, RUNTIME) << "Try to notify with state " << state; in Notify()
451 switch (state) { in Notify()
458 …LOG(ERROR, RUNTIME) << "Illegal monitor state: try to notify with monitor acquired by other thread… in Notify()
459 return State::ILLEGAL; in Notify()
473 return State::OK; // Success in Notify()
477 …LOG(ERROR, RUNTIME) << "Illegal monitor state: try to notify with monitor acquired by other thread… in Notify()
478 return State::ILLEGAL; in Notify()
480 return State::OK; // Success in Notify()
484 LOG(ERROR, RUNTIME) << "Try to perform Notify from unsupported state"; in Notify()
485 return State::ILLEGAL; in Notify()
487 LOG(FATAL, RUNTIME) << "Undefined object state"; in Notify()
492 Monitor::State Monitor::NotifyAll(ObjectHeader *obj) in NotifyAll()
496 MarkWord::ObjectState state = mark.GetState(); in NotifyAll() local
498 LOG(DEBUG, RUNTIME) << "Try to notify all with state " << state; in NotifyAll()
500 switch (state) { in NotifyAll()
507 …LOG(ERROR, RUNTIME) << "Illegal monitor state: try to notify with monitor acquired by other thread… in NotifyAll()
508 return State::ILLEGAL; in NotifyAll()
515 return State::OK; in NotifyAll()
523 return State::OK; // Success in NotifyAll()
527 …LOG(ERROR, RUNTIME) << "Illegal monitor state: try to notify with monitor acquired by other thread… in NotifyAll()
528 return State::ILLEGAL; in NotifyAll()
530 return State::OK; // Success in NotifyAll()
534 LOG(ERROR, RUNTIME) << "Try to perform NotifyAll from unsupported state"; in NotifyAll()
535 return State::ILLEGAL; in NotifyAll()
537 LOG(FATAL, RUNTIME) << "Undefined object state"; in NotifyAll()
697 MarkWord::ObjectState state = old_mark.GetState(); in Acquire() local
701 if (state == MarkWord::STATE_HEAVY_LOCKED) { in Acquire()
707 … if (state != MarkWord::STATE_LIGHT_LOCKED || old_mark.GetThreadId() != thread->GetInternalId()) { in Acquire()
720 switch (state) { in Acquire()
745 LOG(FATAL, RUNTIME) << "Trying to inflate object in GC state"; in Acquire()
748 LOG(FATAL, RUNTIME) << "Undefined object state"; in Acquire()
770 MarkWord::ObjectState state = old_mark.GetState(); in Acquire() local
773 if (state != MarkWord::STATE_HEAVY_LOCKED) { in Acquire()
837 MarkWord::ObjectState state = mark.GetState(); in Acquire() local
840 switch (state) { in Acquire()
853 LOG(FATAL, RUNTIME) << "Undefined object state"; in Acquire()
864 MarkWord::ObjectState state = mark.GetState(); in Acquire() local
866 switch (state) { in Acquire()
883 LOG(FATAL, RUNTIME) << "Undefined object state"; in Acquire()
892 MarkWord::ObjectState state = mark.GetState(); in Acquire() local
893 switch (state) { in Acquire()