[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
gnu.andrew at redhat.com
Mon Jul 9 15:01:51 UTC 2018
On 9 July 2018 at 01:35, David Holmes <david.holmes at oracle.com> wrote:
>> Note that I also provided a variant of the fix only in 'os::readdir'
>> which shouldn't break JFR:
>> Maybe this could make it for 8u?
> This is linux specific code but it seems to be using internal knowledge of
> how a struct dirent is laid out on Linux. I'd also have to ensure this gets
> tested with JFR on 8u.
> I'll leave it to Andrew to decide on the above fix, or the makefile warning
> fix. I'll Review whichever is chosen.
It's difficult for me to really just on Bernand's patch as I don't
know what problem
we're trying to solve. At the very least, it needs to be documented why that
memory copy is taking place.
I can propose a variant of the warning fix, but I think it has to involve moving
the readdir function out of os_linux.inline.hpp and into os_linux.cpp so the
warning pragmas can be safely applied.
Senior Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Web Site: http://fuseyism.com
PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222
More information about the hotspot-dev