RFR: 8180466: Clock.systemUTC has low resolution on Windows

David Holmes david.holmes at oracle.com
Tue Feb 26 13:12:21 UTC 2019


Hi Thomas,

On 26/02/2019 8:54 pm, Thomas Stüfe wrote:
> Looks good.

Thanks for taking a look.

> I read somewhere that the ..precise.. API comes with a performance 
> penalty, is that in some way measurable?

Not easily as I don't have a machine I can directly run measurements on, 
but I'll do some more research and see what I can do.

Thanks,
David

> Cheers, Thomas
> 
> On Tue, Feb 26, 2019 at 1:32 AM David Holmes <david.holmes at oracle.com 
> <mailto:david.holmes at oracle.com>> wrote:
> 
>     bug: https://bugs.openjdk.java.net/browse/JDK-8180466
>     webrev: http://cr.openjdk.java.net/~dholmes/8180466/webrev/
> 
>     There is a new higher-resolution system time call available in Windows
>     8+ and Windows Server 2012+. This enhancement uses the API if it is
>     available at runtime.
> 
>     Testing:
>        - manual testing using the little "benchmark" in the bug report on
>     Windows 7 (no new API) and later
>        - java.time tests
> 
>     Thanks,
>     David
> 


More information about the hotspot-runtime-dev mailing list