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

Thomas Stüfe thomas.stuefe at gmail.com
Tue Feb 26 10:54:44 UTC 2019


Looks good.

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

Cheers, Thomas

On Tue, Feb 26, 2019 at 1:32 AM David Holmes <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