[jdk21u-dev] Integrated: 8365919: Replace currentTimeMillis with nanoTime in Stresser.java
Rui Li
duke at openjdk.org
Thu Oct 2 21:12:52 UTC 2025
On Tue, 30 Sep 2025 01:24:02 GMT, Rui Li <duke at openjdk.org> wrote:
> A clean backport for JDK-8365919.
>
> Stress tests need monotonic time. Replace `System.currentTimeMillis` with `System.nanoTime`. Tests are running. Backport this for the parity with oracle.
This pull request has now been integrated.
Changeset: 98eb9baf
Author: Rui Li <ruiamzn at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk21u-dev/commit/98eb9bafa5f8336349994329f3076cd7e79d70f8
Stats: 25 lines in 1 file changed: 6 ins; 6 del; 13 mod
8365919: Replace currentTimeMillis with nanoTime in Stresser.java
Backport-of: 0ca38bdc4d503158fda57bbc8bc9adc420628079
-------------
PR: https://git.openjdk.org/jdk21u-dev/pull/2284
More information about the jdk-updates-dev
mailing list