8232651: Add implementation of os::processor_id() for Windows

Reviewed-by: dholmes, stuefe
This commit is contained in:
Stefan Karlsson 2019-10-28 11:26:00 +01:00
parent 17a041119f
commit cc72a06c3b

View File

@ -795,6 +795,10 @@ int os::active_processor_count() {
}
}
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