8232651: Add implementation of os::processor_id() for Windows
authorstefank
Mon, 28 Oct 2019 11:26:00 +0100
changeset 58813 67009d58dd70
parent 58812 4adca7312d8f
child 58814 bfb419c66ae9
8232651: Add implementation of os::processor_id() for Windows Reviewed-by: dholmes, stuefe
src/hotspot/os/windows/os_windows.cpp
--- a/src/hotspot/os/windows/os_windows.cpp	Mon Oct 28 11:24:11 2019 +0100
+++ b/src/hotspot/os/windows/os_windows.cpp	Mon Oct 28 11:26:00 2019 +0100
@@ -795,6 +795,10 @@
   }
 }
 
+uint os::processor_id() {
+  return (uint)GetCurrentProcessorNumber();
+}
+
 void os::set_native_thread_name(const char *name) {
 
   // See: http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx