Lines Matching defs:thread

34 #include "runtime/thread.hpp"
68 static bool is_decipherable_compiled_frame(JavaThread* thread, frame* fr, nmethod* nm);
69 static bool is_decipherable_interpreted_frame(JavaThread* thread,
134 static bool is_decipherable_compiled_frame(JavaThread* thread, frame* fr, nmethod* nm) {
137 if (thread->has_last_Java_frame() && thread->last_Java_pc() == fr->pc()) {
179 static bool is_decipherable_interpreted_frame(JavaThread* thread,
188 // Because we may be racing a gc thread the method and/or bci
190 // fail the is_interpreted_frame_valid test. If the thread
194 JavaThreadState state = thread->thread_state();
199 if (known_valid || fr->is_interpreted_frame_valid(thread)) {
250 static bool find_initial_Java_frame(JavaThread* thread,
281 RegisterMap map(thread, false);
284 if (!candidate.safe_for_sender(thread)) return false;
295 RegisterMap map(thread, false);
306 if (is_decipherable_interpreted_frame(thread, &candidate, method_p, bci_p)) {
337 if (!is_decipherable_compiled_frame(thread, &candidate, nm)) {
351 if (!candidate.safe_for_sender(thread)) return false;
484 // a given thread. The thread is identified by the env_id field in the
503 // env_id - ID of thread which executed this trace.
525 JavaThread* thread;
528 (thread = JavaThread::thread_from_jni_environment(trace->env_id)) == NULL ||
529 thread->is_exiting()) {
531 // bad env_id, thread has exited or thread is exiting
536 if (thread->in_deopt_handler()) {
537 // thread is in the deoptimization handler so return no frames
542 assert(JavaThread::current() == thread,
543 "AsyncGetCallTrace must be called by the current interrupted thread");
555 switch (thread->thread_state()) {
559 // We found the thread on the threads list above, but it is too
573 if (!thread->pd_get_top_frame_for_signal_handler(&fr, ucontext, false)) {
576 if (!thread->has_last_Java_frame()) {
580 forte_fill_call_trace_given_top(thread, trace, depth, fr);
584 // thread. A gc thread can make a valid interpreted frame
599 if (!thread->pd_get_top_frame_for_signal_handler(&fr, ucontext, true)) {
603 forte_fill_call_trace_given_top(thread, trace, depth, fr);
608 // Unknown thread state