Lines Matching defs:thread

67 # include <thread.h>
123 bool os::Solaris::valid_ucontext(Thread* thread, ucontext_t* valid, ucontext_t* suspect) {
132 if (thread->is_Java_thread()) {
133 if (!valid_stack_address(thread, (address)suspect)) {
134 DEBUG_ONLY(tty->print_cr("valid_ucontext: uc_link not in thread stack");)
137 if (!valid_stack_address(thread, (address) suspect->uc_mcontext.gregs[REG_SP])) {
138 DEBUG_ONLY(tty->print_cr("valid_ucontext: stackpointer not in thread stack");)
148 ucontext_t* os::Solaris::get_valid_uc_in_signal_handler(Thread *thread,
157 } else if (os::Solaris::valid_ucontext(thread, uc, uc->uc_link)) {
163 } else if (os::Solaris::valid_ucontext(thread, uc, uc->uc_link)) {
191 // For Forte Analyzer AsyncGetCallTrace profiling support - thread
196 ExtendedPC os::Solaris::fetch_frame_from_ucontext(Thread* thread,
199 assert(thread != NULL, "just checking");
203 ucontext_t *luc = os::Solaris::get_valid_uc_in_signal_handler(thread, uc);
394 JavaThread* thread = NULL;
400 thread = (JavaThread*)t;
411 if(thread || vmthread){
418 // non-java thread
436 if (info != NULL && uc != NULL && thread != NULL) {
455 if (thread->in_stack_yellow_zone(addr)) {
456 thread->disable_stack_yellow_zone();
457 if (thread->thread_state() == _thread_in_Java) {
460 stub = SharedRuntime::continuation_for_implicit_exception(thread, pc, SharedRuntime::STACK_OVERFLOW);
465 } else if (thread->in_stack_red_zone(addr)) {
468 thread->disable_stack_red_zone();
473 if (thread->thread_state() == _thread_in_vm) {
474 if (sig == SIGBUS && info->si_code == BUS_OBJERR && thread->doing_unsafe_access()) {
479 if (thread->thread_state() == _thread_in_Java) {
497 stub = SharedRuntime::continuation_for_implicit_exception(thread, pc, SharedRuntime::IMPLICIT_DIVIDE_BY_ZERO);
502 stub = SharedRuntime::continuation_for_implicit_exception(thread, pc, SharedRuntime::IMPLICIT_DIVIDE_BY_ZERO);
533 stub = SharedRuntime::continuation_for_implicit_exception(thread, pc, SharedRuntime::IMPLICIT_NULL);
551 os::is_memory_serialize_page(thread, (address)info->si_addr)) {
552 // Block current thread until the memory serialize page permission restored.
627 // Although both cases could be avoided by using locks or thread local
639 // save all thread context in case we need to restore it
641 if (thread != NULL) thread->set_saved_exception_pc(pc);
658 // thread creations the LDT for a private thread data structure is extended
659 // and thre is a hazard that and another thread attempting a thread creation
665 // more than one thread to generate this fault at a time in an MP system.
728 // on the thread stack, which could get a mapping error when touched.
731 vm_exit_out_of_memory(0, "Out of swap space to map in thread stack.");