Lines Matching defs:thread

44 void SyncThreadRecorderClosure::do_thread(Thread* thread) {
46 if (thread->is_Java_thread()) {
47 JavaThread* javaThread = (JavaThread*)thread;
117 // create nmt lock for multi-thread execution
118 assert(_main_thread_tid == os::current_thread_id(), "wrong thread");
129 assert(_main_thread_tid == os::current_thread_id(), "wrong thread");
156 * 2. Worker thread calls MemTracker::final_shutdown(), which transites
165 // we still in single thread mode, there is not contention
200 // can not delete worker inside the thread critical
239 * retrieve per-thread recorder of specified thread.
240 * if thread == NULL, it means global recorder
242 MemRecorder* MemTracker::get_thread_recorder(JavaThread* thread) {
246 if (thread == NULL) {
249 rc = thread->get_recorder();
259 if (thread == NULL) {
262 thread->set_recorder(rc);
269 * get a per-thread recorder from pool, or create a new one if
337 size_t size, jint seq, address pc, JavaThread* thread) {
339 MemRecorder* rc = get_thread_recorder(thread);
371 * 1. enqueue all JavaThreads' per-thread recorders
394 // worker thread is not ready, no one can manage generation
430 // means that worker thread is lagging behind in processing them.
473 * Start worker thread.
490 * We need to collect a JavaThread's per-thread recorder
493 void MemTracker::thread_exiting(JavaThread* thread) {
495 MemRecorder* rec = thread->get_recorder();
498 thread->set_recorder(NULL);
554 // if worker thread is idle, but generation is not advancing, that means
614 st->print_cr("\tWorker thread:");
619 st->print_cr("\tWorker thread is not started");
642 * still in single thread mode.
652 * records are written to per-thread recorders.
653 * 6. For a thread has yet to attach VM 'Thread', they need to take
719 // the calling thread has yet to attach to VM 'Thread',
721 thr = ThreadLocalStorage::thread();