src/hotspot/os/windows/os_windows.cpp
changeset 47552 8a3599d60996
parent 47216 71c04702a3d5
child 47666 19219ec3f176
equal deleted inserted replaced
47551:4d034d861e13 47552:8a3599d60996
   426 
   426 
   427   // One less thread is executing
   427   // One less thread is executing
   428   // When the VMThread gets here, the main thread may have already exited
   428   // When the VMThread gets here, the main thread may have already exited
   429   // which frees the CodeHeap containing the Atomic::add code
   429   // which frees the CodeHeap containing the Atomic::add code
   430   if (thread != VMThread::vm_thread() && VMThread::vm_thread() != NULL) {
   430   if (thread != VMThread::vm_thread() && VMThread::vm_thread() != NULL) {
   431     Atomic::dec_ptr((intptr_t*)&os::win32::_os_thread_count);
   431     Atomic::dec(&os::win32::_os_thread_count);
   432   }
   432   }
   433 
   433 
   434   // If a thread has not deleted itself ("delete this") as part of its
   434   // If a thread has not deleted itself ("delete this") as part of its
   435   // termination sequence, we have to ensure thread-local-storage is
   435   // termination sequence, we have to ensure thread-local-storage is
   436   // cleared before we actually terminate. No threads should ever be
   436   // cleared before we actually terminate. No threads should ever be
   632     thread->set_osthread(NULL);
   632     thread->set_osthread(NULL);
   633     delete osthread;
   633     delete osthread;
   634     return NULL;
   634     return NULL;
   635   }
   635   }
   636 
   636 
   637   Atomic::inc_ptr((intptr_t*)&os::win32::_os_thread_count);
   637   Atomic::inc(&os::win32::_os_thread_count);
   638 
   638 
   639   // Store info on the Win32 thread into the OSThread
   639   // Store info on the Win32 thread into the OSThread
   640   osthread->set_thread_handle(thread_handle);
   640   osthread->set_thread_handle(thread_handle);
   641   osthread->set_thread_id(thread_id);
   641   osthread->set_thread_id(thread_id);
   642 
   642