Lines Matching refs:current

370   if (this == Thread::current()) {
373 // In the case where we're not the current thread, invalidate all the
374 // caches in case some code tries to get the current thread or the
389 assert(!thread->is_Java_thread() || Thread::current() == thread || Threads_lock->owned_by_self(),
654 SR_lock()->wait(!Thread::current()->is_Java_thread(), i * delay);
730 SR_lock()->wait(!Thread::current()->is_Java_thread(), i * delay);
894 // Check if current thread is allowed to block at a safepoint
931 assert(Thread::current() == this, "is_in_stack can only be called from current thread");
1277 assert(watcher_thread() == Thread::current(), "thread consistency check");
1629 assert(JavaThread::current() == this, "sanity check");
1630 assert(!Thread::current()->owns_locks(), "sanity check");
1657 assert(JavaThread::current() == this, "sanity check");
1701 assert(this == JavaThread::current(), "thread consistency check");
2118 // thread is not the current thread. In older versions of jdbx, jdbx
2122 if (do_self_suspend && (!AllowJNIEnvProxy || this == JavaThread::current())) {
2163 assert(Thread::current()->is_VM_thread(), "should be in the vm thread");
2256 // Note: DO NOT call java_suspend_self() when you just want to block current
2335 JavaThread *curJT = JavaThread::current();
2341 // thread is not the current thread. In older versions of jdbx, jdbx
2483 assert(Thread::current() == this, "from different thread");
2571 frame* fr = fst.current();
2587 if(fst.current()->can_be_deoptimized()) {
2592 // search for the current bci in that string.
2593 address pc = fst.current()->pc();
2594 nmethod* nm = (nmethod*) fst.current()->cb();
2619 Deoptimization::deoptimize(this, *fst.current(), fst.register_map());
2633 if (fst.current()->can_be_deoptimized()) {
2635 nmethod* nm = CodeCache::find_nmethod(fst.current()->pc());
2648 if (fst.current()->should_be_deoptimized()) {
2650 nmethod* nm = fst.current()->cb()->as_nmethod_or_null();
2655 Deoptimization::deoptimize(this, *fst.current(), fst.register_map());
2675 // If the caller is a NamedThread, then remember, in the current scope,
2681 Thread* thread = Thread::current();
2733 fst.current()->oops_do(f, cf, fst.register_map());
2774 fst.current()->nmethods_do(cf);
2863 // early safepoints can hit while current thread does not yet have TLS
2865 Thread *cur = Thread::current();
2907 debug_only(if (JavaThread::current() != this) assert_locked_or_safepoint(Threads_lock);)
2924 debug_only(if (JavaThread::current() != this) assert_locked_or_safepoint(Threads_lock);)
2953 assert(Threads_lock->owner() == Thread::current(), "must have threads lock");
2967 Handle thread_oop(Thread::current(),
2994 JDK_Version::current().supports_thread_park_blocker()) {
3067 fst.current()->print_value_on(tty,this);
3119 fst.current()->describe(values, ++frame_no);
3653 if (JDK_Version::current().post_vm_init_hook_enabled()) {
3821 JavaThread* thread = JavaThread::current();
3842 JavaThread* thread = JavaThread::current();
3922 JavaThread* thread = JavaThread::current();
4062 JavaThread* current = _thread_list;
4065 while (current != p) {
4066 prev = current;
4067 current = current->next();
4071 prev->set_next(current->next());
4313 // that VM is not at safepoint and/or current thread is inside signal handler.
4316 void Threads::print_on_error(outputStream* st, Thread* current, char* buf, int buflen) {
4318 st->print_cr("Java Threads: ( => current thread )");
4320 bool is_current = (current == thread);
4334 bool is_current = (current == VMThread::vm_thread());
4336 st->print("%s", current == VMThread::vm_thread() ? "=>" : " ");
4345 bool is_current = (current == wt);
4356 st->print("=>" PTR_FORMAT " (exited) ", current);
4357 current->print_on_error(st, buf, buflen);
4404 Thread::current()->_ParkEvent->park(1) ;
4434 // * The current implementation of muxAcquire-muxRelease uses its own
4488 ParkEvent * const Self = Thread::current()->_MuxEvent ;