Lines Matching defs:thread

203          err_msg("can not load classes with compiler thread: class=%s, classloader=%s",
263 // if another thread is trying to resolve the class, it must do
264 // super-class checks on its own thread to catch class circularity
269 // 1. If thread T1 tries to do a defineClass of class Base
273 // 3. If we load the class internally, or user classloader uses same thread
282 // 4.3 calls resolve_super_or_fail Super in parallel on own thread T2
286 // thread is loading this class/classloader.
296 // Used as a claim that this thread is currently loading superclass/classloader
440 // We only get here if this thread finds that another thread
442 // but that other thread either never owned or gave up the
451 // so another thread got here in parallel
483 // the superclass on the same thread internally, so we do parallel
485 // This also is critical in cases where the original thread gets stalled
487 // Note: only one thread can define the class, but multiple can resolve
491 // Returns non-null klassOop if other thread has completed load
505 // This code is reached in two situations. One if this thread
508 // The second is if another thread started the resolve_super first
557 // classloader lock when another thread was in the middle of loading a
559 // this thread is also trying to load this class.
560 // To minimize surprises, the first thread that started to
563 // This logic has the current thread wait once it has done
565 // the original thread completes the class loading or fails
575 // If not in SD and not in PH, other thread's load must have failed
721 // check if other thread failed to load and cleaned up
734 // if they did not catch another thread holding LOAD_INSTANCE,
764 // that we return the same result we did for the other thread, i.e. the
814 Thread *thread = THREAD;
815 assert(thread->is_Java_thread(), "thread->is_Java_thread()");
816 JvmtiExport::post_class_load((JavaThread *) thread, k());
873 // thread is running), and are added to in a safe way (all links must
1005 assert(THREAD->is_Java_thread(), "thread->is_Java_thread()");
1413 assert(THREAD->is_Java_thread(), "thread->is_Java_thread()");
1460 // Wait if another thread defining in parallel
1463 // if other thread has not finished updating dictionary
1467 // Only special cases allow parallel defines and can use other thread's results
1480 // This thread will define the class (even if earlier thread tried and had an error)
1771 // if multiple threads calling this function, only one thread will load
1952 // else - ok, class loaded by a different thread in parallel,
2041 // while only one thread can define a class at one time, multiple
2251 // if a racing thread has managed to install one at the same time.
2353 warning("SystemDictionary::find_method_handle_type called from compiler thread"); // FIXME
2786 Thread *thread = Thread::current();
2787 HandleMark hm(thread);
2788 BytecodeStream s(methodHandle(thread, m));