Suggestion needed to port the fix to JDK17 and JDK11S

Alan Bateman alan.bateman at oracle.com
Fri Feb 14 08:44:55 UTC 2025


On 14/02/2025 08:18, Shruthi . wrote:
> Hi Alan,
>
> Reordering |preClose()| in AIX resolves the customer issue. We have 
> validated the fix, and the customer has confirmed it as well.

It may have resolved your customer issue but I'm not yet convinced it's 
a robust workaround for the AIX issue.  Can you check with your AIX team 
on how happens if pthread_kill(thread, SGRTMAX-1) is called and the 
target thread is in not in the read/write syscalls. It looks to me that 
the signal won't be handled and the thread may continue on and block in 
read/write. With your patch then thread calling the close method will do 
the dup2 and hang as before. It's the window between setting 
readerThread/writerThread and blocking in the read/write syscalls that 
you need to look at.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20250214/93ddf100/attachment-0001.htm>


More information about the net-dev mailing list