On Fri, 13 Nov 2026 12:51:12 GMT, Volkan Yazici <[email protected]> wrote:

> Switch `jdk.httpserver` from wall clock to a monotonic one. This effectively 
> fixes elapsed time measurements and scheduled event fire instants. Bonus: 
> improves the test stability.
> 
> In short, replaced the `System.currentTimeMillis()` & `java.util.Timer` 
> combination with the `System.nanoTime()` & `ScheduledExecutorService` 
> alternative.
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 186489b5
Author:    Volkan Yazici <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/186489b55b5df61e270174a76104a2af27cc7197
Stats:     77 lines in 1 file changed: 55 ins; 7 del; 15 mod

8397254: jdk.httpserver uses wall clock to measure elapsed time

Reviewed-by: dfuchs

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

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

Reply via email to