RFR: 8262094: Handshake timeout scaled wrong
Stefan Karlsson
stefank at openjdk.java.net
Mon Feb 22 09:03:39 UTC 2021
On Sun, 21 Feb 2021 18:46:46 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
> Parameter HandshakeTimeout is in milliseconds.
> Internally we use nanoseconds.
> HandshakeTimeout must be scaled to nanoseconds.
>
> Passes T1
Why are we using os::javaTimeNanos instead os::elapsed_counter()? I think we've tried to limit the usage of to places that explicitly interact with the Java side. For example, the reference processor uses os::javaTimeNanos because it interacts with java.lang.ref.SoftReference.clock. Most other places in the JVM uses os::elapsed_counter().
-------------
Changes requested by stefank (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/2666
More information about the hotspot-runtime-dev
mailing list