RFR: 8202353: os::readdir should use readdir instead of readdir_r
Kim Barrett
kim.barrett at oracle.com
Wed Jul 11 19:06:56 UTC 2018
> On Jul 11, 2018, at 2:31 PM, coleen.phillimore at oracle.com wrote:
>
>
> This looks very nice but one question:
>
> http://cr.openjdk.java.net/~kbarrett/8202353/open.00/src/hotspot/os/linux/os_linux.cpp.udiff.html
>
> + while (result && (ptr = readdir(dir)) != NULL) {
>
>
> What deallocates the dirent* memory?
That memory belongs to the DIR* dir, and is reclaimed by the closdir(dir) at the end of the function.
More information about the hotspot-dev
mailing list