--- old/src/hotspot/share/runtime/biasedLocking.cpp Tue Nov 21 15:20:27 2017 +++ new/src/hotspot/share/runtime/biasedLocking.cpp Tue Nov 21 15:20:26 2017 @@ -215,12 +215,8 @@ if (requesting_thread == biased_thread) { thread_is_alive = true; } else { - for (JavaThreadIteratorWithHandle jtiwh; JavaThread *cur_thread = jtiwh.next(); ) { - if (cur_thread == biased_thread) { - thread_is_alive = true; - break; - } - } + ThreadsListHandle tlh; + thread_is_alive = tlh.includes(biased_thread); } if (!thread_is_alive) { if (allow_rebias) {