Lines Matching defs:thread
159 // thread - NOT pre-checked
162 JvmtiEnv::GetThreadLocalStorage(jthread thread, void** data_ptr) {
164 if (thread == NULL) {
171 // the thread to _thread_in_vm. However, when the TLS for a thread
172 // other than the current thread is required we need to transition
179 oop thread_oop = JNIHandles::resolve_external_guard(thread);
186 JavaThread* java_thread = java_lang_Thread::thread(thread_oop);
347 // Have to grab JVMTI thread state lock to be sure that some thread
383 java_thread = java_lang_Thread::thread(thread_oop);
394 // global events cannot be controlled at thread level.
471 // but this thread could be racing with the thread that is
481 Thread* thread = Thread::current();
483 Handle loader_lock = Handle(thread, SystemDictionary::system_loader_lock());
485 ObjectLocker ol(loader_lock, thread);
515 // but this thread could be racing with the thread that is
668 // thread - NOT pre-checked
671 JvmtiEnv::GetThreadState(jthread thread, jint* thread_state_ptr) {
676 if (thread == NULL) {
679 thread_oop = JNIHandles::resolve_external_guard(thread);
690 thr = java_lang_Thread::thread(thread_oop);
759 // don't allow hidden thread suspend request.
770 if (java_thread->is_exiting()) { // thread is in the process of exiting
777 // the thread was in the process of exiting
796 // the thread has not yet run or has exited (not on threads list)
801 if (java_lang_Thread::thread(java_thread->threadObj()) == NULL) {
805 // don't allow hidden thread suspend request.
818 if (java_thread->is_exiting()) { // thread is in the process of exiting
828 // The thread was in the process of exiting. Force another
829 // safepoint to make sure that this thread transitions.
843 // per-thread suspend results returned via results parameter
852 // don't allow hidden thread resume request.
879 // don't allow hidden thread resume request.
896 // per-thread resume results returned via results parameter
916 // thread - NOT pre-checked
918 JvmtiEnv::InterruptThread(jthread thread) {
919 oop thread_oop = JNIHandles::resolve_external_guard(thread);
931 JavaThread* java_thread = java_lang_Thread::thread(JNIHandles::resolve_external_guard(thread));
941 // thread - NOT pre-checked
944 JvmtiEnv::GetThreadInfo(jthread thread, jvmtiThreadInfo* info_ptr) {
950 // if thread is NULL the current thread is used
952 if (thread == NULL) {
955 thread_oop = JNIHandles::resolve_external_guard(thread);
1019 // JVMTI get monitors info at safepoint. Do not require target thread to
1064 // JVMTI get owned monitors info at safepoint. Do not require target thread to
1117 // thread - NOT pre-checked
1121 JvmtiEnv::RunAgentThread(jthread thread, jvmtiStartFunction proc, const void* arg, jint priority) {
1122 oop thread_oop = JNIHandles::resolve_external_guard(thread);
1168 // Only one top level thread group now.
1171 // Allocate memory to store global-refs to the thread groups.
1263 JavaThread *javathread = java_lang_Thread::thread(thread_obj);
1317 // JVMTI get stack trace at safepoint. Do not require target thread to
1427 // Check if there are more than one Java frame in this thread, that the top two frames
1462 // Update the thread state to reflect that the top frame is popped
1465 // The current frame will be popped later when the suspended thread
1469 // It's fine to update the thread state here because no JVMTI events
1636 Thread *thread = Thread::current();
1637 HandleMark hm(thread);
1638 KlassHandle kh (thread, k_oop);
1667 Thread *thread = Thread::current();
1668 HandleMark hm(thread);
1669 KlassHandle kh (thread, k_oop);
1747 Thread *thread = Thread::current();
1748 HandleMark hm(thread);
1767 Thread *thread = Thread::current();
1768 HandleMark hm(thread);
1769 KlassHandle klass (thread, k_oop);
2389 Thread *thread = Thread::current();
2390 HandleMark hm(thread);
2391 KlassHandle klass(thread, k_oop);
2401 instanceKlassHandle ik(thread, k_oop);
2420 Thread *thread = Thread::current();
2421 HandleMark hm(thread);
2422 ResourceMark rm(thread);
2423 KlassHandle klass(thread, k_oop);
2433 instanceKlassHandle ikh(thread, k_oop);
2434 constantPoolHandle constants(thread, ikh->constants());
2435 ObjectLocker ol(constants, thread); // lock constant pool while we query it
2981 Thread* thread = Thread::current();
2982 if (rmonitor->is_entered(thread)) {
2991 r = rmonitor->raw_exit(thread);
3024 // in thread.cpp.
3028 Thread* thread = Thread::current();
3030 if (thread->is_Java_thread()) {
3031 JavaThread* current_thread = (JavaThread*)thread;
3044 /* safepoint but since the thread was already in _thread_in_native */
3045 /* the thread is not leaving a safepoint safe state and it will */
3063 if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) {
3064 r = rmonitor->raw_enter(thread);
3091 Thread* thread = Thread::current();
3093 if (thread->is_Java_thread()) {
3094 JavaThread* current_thread = (JavaThread*)thread;
3101 if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) {
3102 r = rmonitor->raw_exit(thread);
3125 Thread* thread = Thread::current();
3127 if (thread->is_Java_thread()) {
3128 JavaThread* current_thread = (JavaThread*)thread;
3140 /* safepoint but since the thread was already in _thread_in_native */
3141 /* the thread is not leaving a safepoint safe state and it will */
3158 if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) {
3159 r = rmonitor->raw_wait(millis, true, thread);
3184 Thread* thread = Thread::current();
3186 if (thread->is_Java_thread()) {
3187 JavaThread* current_thread = (JavaThread*)thread;
3192 if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) {
3193 r = rmonitor->raw_notify(thread);
3215 Thread* thread = Thread::current();
3217 if (thread->is_Java_thread()) {
3218 JavaThread* current_thread = (JavaThread*)thread;
3222 if (thread->is_VM_thread() || thread->is_ConcurrentGC_thread()) {
3223 r = rmonitor->raw_notifyAll(thread);