8207340: (fs) UnixNativeDispatcher close and readdir usages should be fixed
brian.burkhalter at oracle.com
Mon Jul 16 19:49:52 UTC 2018
On Jul 16, 2018, at 4:54 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> The issue of restarting close when interrupted was discussed recently on serviceability-dev and fixed via JDK-8206145. At the same time, there are several threads about the changes in JDK-8202353 to fix the usages of readdir_r in HotSpot as that function is deprecated in recent releases of glibc. There are equivalent changes needed in the JNI code, currently tracked as JDK-8202794. One sub-task is the usages in src/java.base/unix/native/libnio/UnixNativeDispatcher.c which is easy to fix with the following patch:
> The readdir change is the same as the patch I sent to Bernard Blasser on core-libs-dev a few weeks ago. I've tested this on macOS, Linux, and Solaris.
This look okay.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev