Lines Matching defs:to

16  * 2 along with this work; if not, write to the Free Software Foundation,
51 // Wrapper for all entry points to the virtual machine.
55 // to the saved values in that HandleMark.
76 // VM_ENTRY_BASE macros. These macros are used to guard entry points into
91 // Helper methods used to implement +ScavengeALot and +FullGCALot
141 static inline void transition(JavaThread *thread, JavaThreadState from, JavaThreadState to) {
144 assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states");
146 // Change to transition state (assumes total store ordering! -Urs)
155 // store to serialize page so VM thread can do pseudo remote membar
163 thread->set_thread_state(to);
174 static inline void transition_and_fence(JavaThread *thread, JavaThreadState from, JavaThreadState to) {
176 assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states");
177 // Change to transition state (assumes total store ordering! -Urs)
194 thread->set_thread_state(to);
200 // never block on entry to the VM. This will break the code, since e.g. preserve arguments
202 static inline void transition_from_java(JavaThread *thread, JavaThreadState to) {
204 thread->set_thread_state(to);
207 static inline void transition_from_native(JavaThread *thread, JavaThreadState to) {
208 assert((to & 1) == 0, "odd numbers are transitions states");
210 // Change to transition state (assumes total store ordering! -Urs)
225 // to the runtime from native code because the runtime is not set
226 // up to handle exceptions floating around at arbitrary points.
234 thread->set_thread_state(to);
237 void trans(JavaThreadState from, JavaThreadState to) { transition(_thread, from, to); }
238 void trans_from_java(JavaThreadState to) { transition_from_java(_thread, to); }
239 void trans_from_native(JavaThreadState to) { transition_from_native(_thread, to); }
240 void trans_and_fence(JavaThreadState from, JavaThreadState to) { transition_and_fence(_thread, from, to); }
268 // Used to have a HandleMarkCleaner but that is dangerous as
297 // We are leaving the VM at this point and going directly to native code.
308 // We don't need to clear_walkable because it will happen automagically when we return to java
317 // Once we are blocked vm expects stack to be walkable
323 // We don't need to clear_walkable because it will happen automagically when we return to java
328 // This special transition class is only used to prevent asynchronous exceptions
340 // pending exception field, we would need to deopt (currently C2
341 // only). However, to do so would require that we transition back
342 // to the _thread_in_vm state. Instead we postpone the handling of
352 // Can be used to verify properties on enter/exit of the VM.
464 // (thread is an argument passed in to all these routines)
486 // interpreter is about to branch to doesn't get flushed before as we
487 // branch to it's interpreter_entry_point. Skip stress testing here too.
520 // to get back into Java from the VM