Lines Matching defs:thread
913 // is possible. So we stash the desired callee in the thread
1309 Register thread,
1331 __ set_last_Java_frame(thread, rsp, noreg, the_pc);
1334 __ push(thread);
1338 __ get_thread(thread);
1339 __ reset_last_Java_frame(thread, false, true);
1514 // check if any thread suspend flags are set
1844 // We use rdi as a thread pointer because it is callee save and
1846 const Register thread = rdi;
1853 __ get_thread(thread);
1856 check_needs_gc_for_critical_native(masm, thread, stack_slots, total_c_args, total_in_args,
1956 // Change state to native (we save the return address in the thread, since it might not
1964 __ set_last_Java_frame(thread, rsp, noreg, (address)the_pc);
1975 thread, rax);
1983 thread, rax);
2064 __ lea(rdx, Address(thread, in_bytes(JavaThread::jni_environment_offset())));
2068 // Now set thread in native
2069 __ movl(Address(thread, JavaThread::thread_state_offset()), _thread_in_native);
2100 // Switch thread to "native transition" state before reading the synchronization state.
2103 // Java thread A, in _thread_in_native state, loads _not_synchronized and is preempted.
2104 // VM thread changes sync state to synchronizing and suspends threads for GC.
2107 __ movl(Address(thread, JavaThread::thread_state_offset()), _thread_in_native_trans);
2116 // Write serialization page so VM thread can do a pseudo remote membar.
2117 // We use the current thread pointer to calculate a thread specific
2120 __ serialize_memory(thread, rcx);
2139 __ cmpl(Address(thread, JavaThread::suspend_flags_offset()), 0);
2150 __ push(thread);
2171 // change thread state
2172 __ movl(Address(thread, JavaThread::thread_state_offset()), _thread_in_Java);
2177 __ cmpl(Address(thread, JavaThread::stack_guard_state_offset()), JavaThread::stack_guard_yellow_disabled);
2244 thread, rax);
2250 __ reset_last_Java_frame(thread, false, true);
2264 __ movptr(rcx, Address(thread, JavaThread::active_handles_offset()));
2268 __ cmpptr(Address(thread, in_bytes(Thread::pending_exception_offset())), (int32_t)NULL_WORD);
2307 // args are (oop obj, BasicLock* lock, JavaThread* thread)
2308 __ push(thread);
2316 __ cmpptr(Address(thread, in_bytes(Thread::pending_exception_offset())), (int)NULL_WORD);
2336 __ pushptr(Address(thread, in_bytes(Thread::pending_exception_offset())));
2337 __ movptr(Address(thread, in_bytes(Thread::pending_exception_offset())), NULL_WORD);
2351 __ cmpptr(Address(thread, in_bytes(Thread::pending_exception_offset())), (int32_t)NULL_WORD);
2358 __ popptr(Address(thread, in_bytes(Thread::pending_exception_offset())));
2811 const int additional_words = 2; // deopt kind, thread
2932 // Call C code. Need thread and this frame, but NOT official VM entry
3100 // Call C code. Need thread but NOT official VM entry
3164 arg0_off, // thread sp + 0 // Arg location for
3190 // Call C code. Need thread but NOT official VM entry
3305 // Call C code. Need thread but NOT official VM entry
3339 // Account for thread arg in our frame
3374 // Push thread argument and setup last_Java_sp
3457 const Register thread = rdi;
3460 __ push(thread);
3461 __ set_last_Java_frame(thread, noreg, rbp, NULL);
3477 __ reset_last_Java_frame(thread, true, false);
3480 __ cmpptr(Address(thread, Thread::pending_exception_offset()), (int32_t)NULL_WORD);
3484 __ movptr(rbx, Address(thread, JavaThread::vm_result_offset()));
3503 __ get_thread(thread);
3504 __ movptr(Address(thread, JavaThread::vm_result_offset()), NULL_WORD);
3505 __ movptr(rax, Address(thread, Thread::pending_exception_offset()));