# HG changeset patch # User stefank # Date 1572258360 -3600 # Node ID 67009d58dd7024e353693fec14f26300e9c9ddac # Parent 4adca7312d8f2e5fc279146c1eb7ee832bce6722 8232651: Add implementation of os::processor_id() for Windows Reviewed-by: dholmes, stuefe diff -r 4adca7312d8f -r 67009d58dd70 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