os_windows.cpp : simplify is_thread_cpu_time_supported ?

David Holmes david.holmes at oracle.com
Thu Mar 25 22:30:30 UTC 2021


Hi Matthias,

On 25/03/2021 11:49 pm, Baesken, Matthias wrote:
> 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 .

Yes it should be fine. There may be other Windows archaisms in the code 
that could be cleaned up now.

Cheers,
David

> Best regards, Matthias
> 


More information about the hotspot-dev mailing list