Lines Matching defs:thread

217 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
224 thread->satb_mark_queue().enqueue(orig);
228 JRT_LEAF(void, SharedRuntime::g1_wb_post(void* card_addr, JavaThread* thread))
229 thread->dirty_card_queue().enqueue(card_addr);
477 address SharedRuntime::raw_exception_handler_for_return_address(JavaThread* thread, address return_address) {
481 thread->set_is_method_handle_return(false);
488 thread->set_is_method_handle_return(nm->is_method_handle_return(return_address));
524 JRT_LEAF(address, SharedRuntime::exception_handler_for_return_address(JavaThread* thread, address return_address))
525 return raw_exception_handler_for_return_address(thread, return_address);
584 void SharedRuntime::throw_and_post_jvmti_exception(JavaThread *thread, Handle h_exception) {
586 vframeStream vfst(thread, true);
587 methodHandle method = methodHandle(thread, vfst.method());
589 JvmtiExport::post_exception_throw(thread, method(), bcp, h_exception());
591 Exceptions::_throw(thread, __FILE__, __LINE__, h_exception);
594 void SharedRuntime::throw_and_post_jvmti_exception(JavaThread *thread, Symbol* name, const char *message) {
595 Handle h_exception = Exceptions::new_exception(thread, name, message);
596 throw_and_post_jvmti_exception(thread, h_exception);
605 JavaThread* thread, methodOopDesc* method))
614 RC_TRACE_WITH_THREAD(0x00001000, thread,
650 // be set into thread local storage, and do another lookup for an
713 JRT_ENTRY(void, SharedRuntime::throw_AbstractMethodError(JavaThread* thread))
715 throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_AbstractMethodError());
718 JRT_ENTRY(void, SharedRuntime::throw_IncompatibleClassChangeError(JavaThread* thread))
720 throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_IncompatibleClassChangeError(), "vtable stub");
723 JRT_ENTRY(void, SharedRuntime::throw_ArithmeticException(JavaThread* thread))
724 throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_ArithmeticException(), "/ by zero");
727 JRT_ENTRY(void, SharedRuntime::throw_NullPointerException(JavaThread* thread))
728 throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_NullPointerException());
731 JRT_ENTRY(void, SharedRuntime::throw_NullPointerException_at_call(JavaThread* thread))
734 throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_NullPointerException());
737 JRT_ENTRY(void, SharedRuntime::throw_StackOverflowError(JavaThread* thread))
742 Handle exception (thread, exception_oop);
746 throw_and_post_jvmti_exception(thread, exception);
749 address SharedRuntime::continuation_for_implicit_exception(JavaThread* thread,
774 // For stack overflow in deoptimization blob, cleanup thread.
775 if (thread->deopt_mark() != NULL) {
776 Deoptimization::cleanup_deopt_info(thread, NULL);
778 Events::log_exception(thread, "StackOverflowError at " INTPTR_FORMAT, pc);
795 Events::log_exception(thread, "AbstractMethodError at " INTPTR_FORMAT, pc);
798 Events::log_exception(thread, "NullPointerException at vtable entry " INTPTR_FORMAT, pc);
815 Events::log_exception(thread, "NullPointerException in code blob at " INTPTR_FORMAT, pc);
827 Events::log_exception(thread, "NullPointerException in IC check " INTPTR_FORMAT, pc);
833 Events::log_exception(thread, "NullPointerException in MH adapter " INTPTR_FORMAT, pc);
871 Events::log_exception(thread, "Implicit null exception at " INTPTR_FORMAT " to " INTPTR_FORMAT, pc, target_pc);
873 Events::log_exception(thread, "Implicit division by zero exception at " INTPTR_FORMAT " to " INTPTR_FORMAT, pc, target_pc);
909 JRT_ENTRY(intptr_t, SharedRuntime::trace_bytecode(JavaThread* thread, intptr_t preserve_this_value, intptr_t tos, intptr_t tos2))
910 const frame f = thread->last_frame();
921 JRT_ENTRY(void, SharedRuntime::yield_all(JavaThread* thread, int attempts))
926 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::register_finalizer(JavaThread* thread, oopDesc* obj))
933 jlong SharedRuntime::get_java_tid(Thread* thread) {
934 if (thread != NULL) {
935 if (thread->is_Java_thread()) {
936 oop obj = ((JavaThread*)thread)->threadObj();
952 int SharedRuntime::dtrace_object_alloc_base(Thread* thread, oopDesc* o) {
958 HS_DTRACE_PROBE4(hotspot, object__alloc, get_java_tid(thread),
962 get_java_tid(thread),
969 JavaThread* thread, methodOopDesc* method))
975 HS_DTRACE_PROBE7(hotspot, method__entry, get_java_tid(thread),
981 get_java_tid(thread),
990 JavaThread* thread, methodOopDesc* method))
996 HS_DTRACE_PROBE7(hotspot, method__return, get_java_tid(thread),
1002 get_java_tid(thread),
1015 Handle SharedRuntime::find_callee_info(JavaThread* thread, Bytecodes::Code& bc, CallInfo& callinfo, TRAPS) {
1019 vframeStream vfst(thread, true); // Do not skip and javaCalls
1021 return find_callee_info_helper(thread, vfst, bc, callinfo, CHECK_(Handle()));
1028 Handle SharedRuntime::find_callee_info_helper(JavaThread* thread,
1051 RegisterMap reg_map2(thread);
1052 frame stubFrame = thread->last_frame();
1102 methodHandle SharedRuntime::find_callee_method(JavaThread* thread, TRAPS) {
1107 vframeStream vfst(thread, true); // Do not skip any javaCalls
1113 RegisterMap reg_map(thread, false);
1114 frame fr = thread->last_frame();
1124 find_callee_info_helper(thread, vfst, bc, callinfo, CHECK_(methodHandle()));
1132 methodHandle SharedRuntime::resolve_helper(JavaThread *thread,
1136 callee_method = resolve_sub_helper(thread, is_virtual, is_optimized, THREAD);
1153 callee_method = resolve_sub_helper(thread, is_virtual, is_optimized, THREAD);
1161 methodHandle SharedRuntime::resolve_sub_helper(JavaThread *thread,
1165 ResourceMark rm(thread);
1166 RegisterMap cbl_map(thread, false);
1167 frame caller_frame = thread->last_frame().sender(&cbl_map);
1183 Handle receiver = find_callee_info(thread, invoke_code,
1200 ResourceMark rm(thread);
1281 JRT_BLOCK_ENTRY(address, SharedRuntime::handle_wrong_method_ic_miss(JavaThread* thread))
1283 RegisterMap reg_map(thread, false);
1284 frame stub_frame = thread->last_frame();
1292 callee_method = SharedRuntime::handle_ic_miss_helper(thread, CHECK_NULL);
1294 thread->set_vm_result(callee_method());
1303 JRT_BLOCK_ENTRY(address, SharedRuntime::handle_wrong_method(JavaThread* thread))
1313 RegisterMap reg_map(thread, false);
1314 frame stub_frame = thread->last_frame();
1326 methodOop callee = thread->callee_target();
1328 thread->set_vm_result(callee);
1329 thread->set_callee_target(NULL);
1337 callee_method = SharedRuntime::reresolve_call_site(thread, CHECK_NULL);
1338 thread->set_vm_result(callee_method());
1347 JRT_BLOCK_ENTRY(address, SharedRuntime::resolve_static_call_C(JavaThread *thread ))
1350 callee_method = SharedRuntime::resolve_helper(thread, false, false, CHECK_NULL);
1351 thread->set_vm_result(callee_method());
1360 JRT_BLOCK_ENTRY(address, SharedRuntime::resolve_virtual_call_C(JavaThread *thread ))
1363 callee_method = SharedRuntime::resolve_helper(thread, true, false, CHECK_NULL);
1364 thread->set_vm_result(callee_method());
1374 JRT_BLOCK_ENTRY(address, SharedRuntime::resolve_opt_virtual_call_C(JavaThread *thread))
1377 callee_method = SharedRuntime::resolve_helper(thread, true, true, CHECK_NULL);
1378 thread->set_vm_result(callee_method());
1389 methodHandle SharedRuntime::handle_ic_miss_helper(JavaThread *thread, TRAPS) {
1390 ResourceMark rm(thread);
1396 Handle receiver = find_callee_info(thread, bc, call_info,
1409 methodHandle callee_method = SharedRuntime::reresolve_call_site(thread, CHECK_(methodHandle()));
1411 RegisterMap reg_map(thread, false);
1412 frame caller_frame = thread->last_frame().sender(&reg_map);
1413 ResourceMark rm(thread);
1431 ResourceMark rm(thread);
1439 RegisterMap reg_map(thread, false);
1440 frame f = thread->last_frame().real_sender(&reg_map);// skip runtime stub
1456 RegisterMap reg_map(thread, false);
1457 frame caller_frame = thread->last_frame().sender(&reg_map);
1465 ResourceMark rm(thread);
1482 ResourceMark rm(thread);
1523 methodHandle SharedRuntime::reresolve_call_site(JavaThread *thread, TRAPS) {
1524 ResourceMark rm(thread);
1525 RegisterMap reg_map(thread, false);
1526 frame stub_frame = thread->last_frame();
1558 // Get call instruction under lock because another thread may be
1618 methodHandle callee_method = find_callee_method(thread, CHECK_(methodHandle()));
1625 ResourceMark rm(thread);
1766 JavaThread* thread)) {
1782 length, thread);
1787 JavaThread* thread, const char* objName) {
1790 vframeStream vfst(thread, true);
1794 cc.index(), thread));
1821 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::complete_monitor_locking_C(oopDesc* _obj, BasicLock* lock, JavaThread* thread))
2455 // Ought to log this but compile log is only per compile thread
2456 // and we're some non descript Java thread.
2640 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::block_for_jni_critical(JavaThread* thread))
2641 assert(thread == JavaThread::current(), "must be");
2643 // _needs_gc is true, so if this thread is already in a critical
2644 // section then just return, otherwise this thread should block
2646 if (thread->in_critical()) {
2650 GC_locker::lock_critical(thread);
2651 GC_locker::unlock_critical(thread);
2659 // leaf no thread transition is needed.
2817 JRT_LEAF(intptr_t*, SharedRuntime::OSR_migration_begin( JavaThread *thread) )
2831 frame fr = thread->last_frame();