jdk8u-dev Digest, Vol 90, Issue 20

Andrew Haley aph at redhat.com
Sun May 16 15:39:19 UTC 2021


On 5/15/21 5:14 PM, Kate Fox wrote:
> Here is the code from UnixNativeDispatcher.c:
> 
> JNIEXPORT jbyteArray JNICALL
> Java_sun_nio_fs_UnixNativeDispatcher_readdir(JNIEnv* env, jclass this, jlong value) {
> ...
>     res = readdir64_r(dirp, ptr, &result);

Ah, right. This is about readdir64_r().

This is Bug 8207340: (fs) UnixNativeDispatcher close and readdir usages should be fixed.
It has not been backported to 8u, and as far as I can see there is no proposal that it
should be, either by OpenJDK or Oracle.

I don't know why this one didn't get backported. The patch looks quite straightforward.
There may be some issues with old operating systems that affect this, but given that
HotSpot is using the new readdir() I doubt that this would hurt. We are very cautious
when backporting to 8, which is rather elderly.

We could just put this patch in our queue, but it might help if you tried applying it
and got back to us.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the jdk8u-dev mailing list