Skip to content
Browse files
8278309: [windows] use of uninitialized OSThread::_state
Backport-of: 54993b13078ceb05736bb0e1d7ed7415c390442e
  • Loading branch information
Yuri Nesterenko committed Feb 10, 2022
1 parent d959f81 commit 279be06ec7bb54ade64c6055e9f9a05bb8a9f13b
Showing 1 changed file with 4 additions and 1 deletion.
@@ -599,6 +599,9 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
return false;

// Initial state is ALLOCATED but not INITIALIZED

// Initialize support for Java interrupts
HANDLE interrupt_event = CreateEvent(NULL, true, false, NULL);
if (interrupt_event == NULL) {
@@ -690,7 +693,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,

// Initial thread state is INITIALIZED, not SUSPENDED
// Thread state now is INITIALIZED, not SUSPENDED

// The thread is returned suspended (in state INITIALIZED), and is started higher up in the call chain

1 comment on commit 279be06

Copy link

@openjdk-notifier openjdk-notifier bot commented on 279be06 Feb 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.