mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8253033: CheckUnhandledOops check fails in ThreadSnapshot::initialize…
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
5c0d985abf
commit
306b166336
1 changed files with 2 additions and 1 deletions
|
@ -877,6 +877,8 @@ void ThreadSnapshot::initialize(ThreadsList * t_list, JavaThread* thread) {
|
|||
_is_ext_suspended = thread->is_being_ext_suspended();
|
||||
_is_in_native = (thread->thread_state() == _thread_in_native);
|
||||
|
||||
Handle obj = ThreadService::get_current_contended_monitor(thread);
|
||||
|
||||
oop blocker_object = NULL;
|
||||
oop blocker_object_owner = NULL;
|
||||
|
||||
|
@ -884,7 +886,6 @@ void ThreadSnapshot::initialize(ThreadsList * t_list, JavaThread* thread) {
|
|||
_thread_status == java_lang_Thread::IN_OBJECT_WAIT ||
|
||||
_thread_status == java_lang_Thread::IN_OBJECT_WAIT_TIMED) {
|
||||
|
||||
Handle obj = ThreadService::get_current_contended_monitor(thread);
|
||||
if (obj() == NULL) {
|
||||
// monitor no longer exists; thread is not blocked
|
||||
_thread_status = java_lang_Thread::RUNNABLE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue