[jdk17u-dev] Integrated: 8365919: Replace currentTimeMillis with nanoTime in Stresser.java

Rui Li duke at openjdk.org
Thu Oct 2 21:12:00 UTC 2025


On Tue, 30 Sep 2025 01:28:32 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: c80edc3e
Author:    Rui Li <ruiamzn at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/c80edc3e3b0c7de2db2884f1484d2cefe58ed31e
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/jdk17u-dev/pull/4005


More information about the jdk-updates-dev mailing list