Lines Matching defs:from

140   // Time-critical: called on exit from every runtime routine
141 static inline void transition(JavaThread *thread, JavaThreadState from, JavaThreadState to) {
142 assert(from != _thread_in_Java, "use transition_from_java");
143 assert(from != _thread_in_native, "use transition_from_native");
144 assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states");
145 assert(thread->thread_state() == from, "coming from wrong thread state");
147 thread->set_thread_state((JavaThreadState)(from + 1));
172 // fault and we can't recover from it on Windows without a SEH in
174 static inline void transition_and_fence(JavaThread *thread, JavaThreadState from, JavaThreadState to) {
175 assert(thread->thread_state() == from, "coming from wrong thread state");
176 assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states");
178 thread->set_thread_state((JavaThreadState)(from + 1));
199 // Same as above, but assumes from = _thread_in_Java. This is simpler, since we
203 assert(thread->thread_state() == _thread_in_Java, "coming from wrong thread state");
209 assert(thread->thread_state() == _thread_in_native, "coming from wrong thread state");
225 // to the runtime from native code because the runtime is not set
237 void trans(JavaThreadState from, JavaThreadState to) { transition(_thread, from, to); }
240 void trans_and_fence(JavaThreadState from, JavaThreadState to) { transition_and_fence(_thread, from, to); }
329 // from being installed on vm exit in situations where we can't tolerate them.
520 // to get back into Java from the VM