Integrated: 8365919: Replace currentTimeMillis with nanoTime in Stresser.java

Albert Mingkun Yang ayang at openjdk.org
Wed Aug 27 09:33:51 UTC 2025


On Thu, 21 Aug 2025 10:02:12 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Mostly a mechanic change from `currentTimeMillis()` to `nanoTime()/1000000`. It also removes `finishTime` to avoid overflowing.
> 
> The change in `iteration()` is to ensure `currentTime` is properly initialized.
> 
> (Was investigating a timeout on Windows-x64, which led me to this code. I think this fix is good enough by its own.)
>  
> Test: tier1-5

This pull request has now been integrated.

Changeset: 0ca38bdc
Author:    Albert Mingkun Yang <ayang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0ca38bdc4d503158fda57bbc8bc9adc420628079
Stats:     25 lines in 1 file changed: 6 ins; 6 del; 13 mod

8365919: Replace currentTimeMillis with nanoTime in Stresser.java

Reviewed-by: tschatzl, phh

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

PR: https://git.openjdk.org/jdk/pull/26879


More information about the hotspot-gc-dev mailing list