Lines Matching defs:thread

59   JavaThread* thread = (JavaThread *)THREAD;
62 guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code");
63 assert(!thread->owns_locks(), "must release all locks when leaving VM");
64 guarantee(!thread->is_Compiler_thread(), "cannot make java calls from the compiler");
69 JNIHandleBlock* new_handles = JNIHandleBlock::allocate_block(thread);
71 // After this, we are official in JavaCode. This needs to be done before we change any of the thread local
73 ThreadStateTransition::transition(thread, _thread_in_vm, _thread_in_Java);
75 // Make sure that we handle asynchronous stops and suspends _before_ we clear all thread state
78 if (thread->has_special_runtime_exit_condition()) {
79 thread->handle_special_runtime_exit_condition();
86 // Make sure to set the oop's after the thread transition - since we can block there. No one is GC'ing
96 _thread = (JavaThread *)thread;
99 // For the profiler, the last_Java_frame information in thread must always be in
112 // clear any pending exception in thread (native calls start with no exception pending)
124 assert(_thread == JavaThread::current(), "must still be the same thread");
139 // Old thread-local info. has been restored. We are not back in the VM.
190 void JavaCalls::call_default_constructor(JavaThread* thread, methodHandle method, Handle receiver, TRAPS) {
315 // Check if we need to wrap a potential OS exception handler around thread
325 JavaThread* thread = (JavaThread*)THREAD;
326 assert(thread->is_Java_thread(), "must be called by a java thread");
329 assert(!thread->handle_area()->no_handle_mark_active(), "cannot call out to Java here");
332 CHECK_UNHANDLED_OOPS_ONLY(thread->clear_unhandled_oops();)
337 args->verify(method, result->get_type(), thread);
339 else debug_only(args->verify(method, result->get_type(), thread));
358 assert(!thread->is_Compiler_thread(), "cannot compile from the compiler");
369 if (JvmtiExport::can_post_interpreter_events() && thread->is_interp_only_mode()) {
387 if (thread->stack_yellow_zone_disabled()) {
388 thread->reguard_stack();
391 // Check that there are shadow pages available before changing thread state
404 { HandleMark hm(thread); // HandleMark used by HandleMarkCleaner
421 thread->set_vm_result((oop) result->get_jobject());
426 // Check if a thread stop or suspend should be executed
428 //assert(!thread->has_special_runtime_exit_condition(), "no async. exceptions should be installed");
432 result->set_jobject((jobject)thread->vm_result());
433 thread->set_vm_result(NULL);
465 SignatureChekker(Symbol* signature, BasicType return_type, bool is_static, bool* is_oop, intptr_t* value, Thread* thread) : SignatureIterator(signature) {
471 _thread = thread;
549 Thread *thread) {
558 SignatureChekker sc(signature, return_type, method->is_static(),_is_oop, _value, thread);