RFR: 8338426: Test java/nio/channels/Selector/WakeupNow.java failed

Alan Bateman alanb at openjdk.org
Fri Oct 25 07:12:10 UTC 2024


On Thu, 24 Oct 2024 15:09:14 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> > Changing it to use nanoTime is good but I wonder about the reliability of the select(2000) taking >= 1s.
> 
> I am not sure about it either, but I thought that with the addition of the time delta to the exception message it might allow some information gathering about failures should they occur.

I don't know which clock source is used by GetQueuedCompletionStatus but I agree, using nanoTimes would be better here and if it fails because it takes <1s then it at least tells us something.

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

PR Comment: https://git.openjdk.org/jdk/pull/21674#issuecomment-2437056814


More information about the nio-dev mailing list