os_windows.cpp : simplify is_thread_cpu_time_supported ?
Baesken, Matthias
matthias.baesken at sap.com
Thu Mar 25 13:49:11 UTC 2021
Hello, I wonder , should we just return true in os::is_thread_cpu_time_supported() on Windows ?
See
https://github.com/openjdk/jdk/blob/master/src/hotspot/os/windows/os_windows.cpp#L4588
According to MSDN
https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadtimes
GetThreadTimes is supported on Win2003/XP and higher . This should be fine for OpenJDK .
Best regards, Matthias
More information about the hotspot-dev
mailing list