[8u] [RFR] Request for Review of Backport of JDK-8179887: Build failure with glibc >= 2.24: error: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated

Kim Barrett kim.barrett at oracle.com
Wed Jul 11 05:52:31 UTC 2018

> On Jul 9, 2018, at 10:21 PM, David Holmes <david.holmes at oracle.com> wrote:
> On 10/07/2018 2:59 AM, B. Blaser wrote:
>> So, we can disable the warning for 8 but the process iterator will
>> still remain broken in 11 & 12.
>> What should we do?
> The immediate issue in 8u is a build failure due to the warning. Fixing the warning, via compiler directives, addresses that. The other open bugs can deal with the problem of trying to switch to readdir.

I’ve sent out an RFR for a fix for 8202353 + 8202835, for jdk12.

The proposed fix for 8202835 is similar to B. Blaser’s proposal from here:
but filled out to cover all relevant platforms, and with the no longer needed
argument for os::readdir removed.

We can decide how much of that to backport.  One option is to backport the fix for 8202835, (or
perhaps only the linux part), modified to use ::readdir directly, rather than using os::readdir
(which doesn't really add much in what is already platform-specific code).

More information about the hotspot-dev mailing list