all EventHandlerTasks in EPollPort waiting on queue

Alan Bateman Alan.Bateman at oracle.com
Thu Jan 12 14:24:32 UTC 2017


On 11/01/2017 22:11, Jeremiah Ness wrote:

> (Sorry is this is the wrong place to discuss this matter. If you know of a
> better place, please let me know.)
>
> I suspect there is a bug in EPollPort.java (and KQueuePort.java) and am looking
> for a more informed opinion.
>
> Please reference the source code below from
> src//solaris/classes/sun/nio/ch/EPollPort.java.
>
> On line 244 below the poll() method attempts to insert the NEED_TO_POLL event
> into the queue. The queue is a fixed size ArrayBlockingQueue of size
> MAX_EPOLL_EVENTS. On line 244, if the queue is full, then the event silently
> fails to be inserted. The NEED_TO_POLL event is critical for the operation of
> the EPollPort as it is the event which signals one of the threads to poll
> again.
>
There does appear to be an issue here. Can you create a standalone test 
case to tickle test so that we can include it in a bug report? That 
would really help get to a regression test to include with the fix.

-Alan.


More information about the nio-dev mailing list