src/hotspot/os/windows/os_windows.cpp
changeset 47552 8a3599d60996
parent 47216 71c04702a3d5
child 47666 19219ec3f176
--- a/src/hotspot/os/windows/os_windows.cpp	Thu Sep 28 11:02:55 2017 +0200
+++ b/src/hotspot/os/windows/os_windows.cpp	Tue Sep 26 14:05:27 2017 +0200
@@ -428,7 +428,7 @@
   // When the VMThread gets here, the main thread may have already exited
   // which frees the CodeHeap containing the Atomic::add code
   if (thread != VMThread::vm_thread() && VMThread::vm_thread() != NULL) {
-    Atomic::dec_ptr((intptr_t*)&os::win32::_os_thread_count);
+    Atomic::dec(&os::win32::_os_thread_count);
   }
 
   // If a thread has not deleted itself ("delete this") as part of its
@@ -634,7 +634,7 @@
     return NULL;
   }
 
-  Atomic::inc_ptr((intptr_t*)&os::win32::_os_thread_count);
+  Atomic::inc(&os::win32::_os_thread_count);
 
   // Store info on the Win32 thread into the OSThread
   osthread->set_thread_handle(thread_handle);