RFR: 8262094: Handshake timeout scaled wrong

Stefan Johansson sjohanss at openjdk.java.net
Mon Feb 22 09:47:41 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

`G1ServiceThread` is using `os::elapsed_counter()` but if the `frequency` used in `TimeHelper::millis_to_counter(...)` is wrong I guess we could be in trouble. @robehn, is your theory that the calculated delay in some cases could be extremely long and because of that cause the timeouts we see?

-------------

PR: https://git.openjdk.java.net/jdk/pull/2666


More information about the hotspot-runtime-dev mailing list