< prev index next >

src/hotspot/os/solaris/os_solaris.cpp

Print this page

        

*** 5061,5071 **** // Optional fast-exit: Check interrupt before trying to wait Thread* thread = Thread::current(); assert(thread->is_Java_thread(), "Must be JavaThread"); JavaThread *jt = (JavaThread *)thread; ! if (Thread::is_interrupted(thread, false)) { return; } // First, demultiplex/decode time arguments timespec absTime; --- 5061,5071 ---- // Optional fast-exit: Check interrupt before trying to wait Thread* thread = Thread::current(); assert(thread->is_Java_thread(), "Must be JavaThread"); JavaThread *jt = (JavaThread *)thread; ! if (jt->is_interrupted(false)) { return; } // First, demultiplex/decode time arguments timespec absTime;
*** 5086,5096 **** // the ThreadBlockInVM() CTOR and DTOR may grab Threads_lock. ThreadBlockInVM tbivm(jt); // Don't wait if cannot get lock since interference arises from // unblocking. Also. check interrupt before trying wait ! if (Thread::is_interrupted(thread, false) || os::Solaris::mutex_trylock(_mutex) != 0) { return; } int status; --- 5086,5096 ---- // the ThreadBlockInVM() CTOR and DTOR may grab Threads_lock. ThreadBlockInVM tbivm(jt); // Don't wait if cannot get lock since interference arises from // unblocking. Also. check interrupt before trying wait ! if (jt->is_interrupted(false) || os::Solaris::mutex_trylock(_mutex) != 0) { return; } int status;
< prev index next >