On Fri, 19 Jul 2024 18:41:10 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

> The test sometimes fails because the InterruptException doesn't arrive during 
> the 100ms that the thread sleeps. My suspicion is that the interrupt is being 
> delayed for some external reason, like temporary load on the host. I'm 
> bumping the sleep period to 10s to hopefully avoid such an issue. This won't 
> make the test run any slower when it passes, but will make it slower (by 
> about 10 seconds) when it fails due to waiting longer for the 
> InterruptException to never arrive, assuming it still might fail for this 
> reason.
> 
> I tested by running the InterruptHangTest locally. TBD I will run all of 
> con/sun/jdi on all supported platforms.

This pull request has now been integrated.

Changeset: ed649944
Author:    Chris Plummer <cjplum...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/ed6499446dadc339599271a282ceca4a52dbeed4
Stats:     4 lines in 1 file changed: 2 ins; 0 del; 2 mod

8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never 
interrupted during sleep

Reviewed-by: lmesnik, amenkov

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

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

Reply via email to