Lines Matching defs:to

16  * 2 along with this work; if not, write to the Free Software Foundation,
40 // Wrapper for all entry points to the virtual machine.
44 // to the saved values in that HandleMark.
65 // VM_ENTRY_BASE macros. These macros are used to guard entry points into
77 // Helper methods used to implement +ScavengeALot and +FullGCALot
110 // store to serialize page so VM thread can do pseudo remote membar
135 static inline void transition(JavaThread *thread, JavaThreadState from, JavaThreadState to) {
138 assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states");
140 // Change to transition state
148 thread->set_thread_state(to);
159 static inline void transition_and_fence(JavaThread *thread, JavaThreadState from, JavaThreadState to) {
161 assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states");
162 // Change to transition state
170 thread->set_thread_state(to);
176 // never block on entry to the VM. This will break the code, since e.g. preserve arguments
178 static inline void transition_from_java(JavaThread *thread, JavaThreadState to) {
180 thread->set_thread_state(to);
183 static inline void transition_from_native(JavaThread *thread, JavaThreadState to) {
184 assert((to & 1) == 0, "odd numbers are transitions states");
186 // Change to transition state
192 // to the runtime from native code because the runtime is not set
193 // up to handle exceptions floating around at arbitrary points.
201 thread->set_thread_state(to);
204 void trans(JavaThreadState from, JavaThreadState to) { transition(_thread, from, to); }
205 void trans_from_java(JavaThreadState to) { transition_from_java(_thread, to); }
206 void trans_from_native(JavaThreadState to) { transition_from_native(_thread, to); }
207 void trans_and_fence(JavaThreadState from, JavaThreadState to) { transition_and_fence(_thread, from, to); }
238 // Used to have a HandleMarkCleaner but that is dangerous as
267 // We are leaving the VM at this point and going directly to native code.
279 // We don't need to clear_walkable because it will happen automagically when we return to java
288 // Once we are blocked vm expects stack to be walkable
294 // We don't need to clear_walkable because it will happen automagically when we return to java
299 // This special transition class is only used to prevent asynchronous exceptions
314 // pending exception field, we would need to deopt (currently C2
315 // only). However, to do so would require that we transition back
316 // to the _thread_in_vm state. Instead we postpone the handling of
327 // Can be used to verify properties on enter/exit of the VM.
440 // (thread is an argument passed in to all these routines)
486 // to get back into Java from the VM