src/hotspot/os/windows/os_windows.cpp
changeset 53919 554c3c813ad6
parent 53886 e94ed0236046
child 53981 d489081c5650
equal deleted inserted replaced
53918:616a32d6b463 53919:554c3c813ad6
   600 
   600 
   601   // Initialize support for Java interrupts
   601   // Initialize support for Java interrupts
   602   HANDLE interrupt_event = CreateEvent(NULL, true, false, NULL);
   602   HANDLE interrupt_event = CreateEvent(NULL, true, false, NULL);
   603   if (interrupt_event == NULL) {
   603   if (interrupt_event == NULL) {
   604     delete osthread;
   604     delete osthread;
   605     return NULL;
   605     return false;
   606   }
   606   }
   607   osthread->set_interrupt_event(interrupt_event);
   607   osthread->set_interrupt_event(interrupt_event);
   608   osthread->set_interrupted(false);
   608   osthread->set_interrupted(false);
   609 
   609 
   610   thread->set_osthread(osthread);
   610   thread->set_osthread(osthread);
   674   if (thread_handle == NULL) {
   674   if (thread_handle == NULL) {
   675     // Need to clean up stuff we've allocated so far
   675     // Need to clean up stuff we've allocated so far
   676     CloseHandle(osthread->interrupt_event());
   676     CloseHandle(osthread->interrupt_event());
   677     thread->set_osthread(NULL);
   677     thread->set_osthread(NULL);
   678     delete osthread;
   678     delete osthread;
   679     return NULL;
   679     return false;
   680   }
   680   }
   681 
   681 
   682   Atomic::inc(&os::win32::_os_thread_count);
   682   Atomic::inc(&os::win32::_os_thread_count);
   683 
   683 
   684   // Store info on the Win32 thread into the OSThread
   684   // Store info on the Win32 thread into the OSThread