8202353: os::readdir should use readdir instead of readdir_r

8202835: jfr/event/os/TestSystemProcess.java fails on missing events

Os::readdir uses POSIX readdir, drop buffer arg, fix JFR uses.

Reviewed-by: coleenp, tschatzl, bsrbnd
This commit is contained in:
Kim Barrett 2018-07-17 15:59:47 -04:00
parent f4723253b6
commit 9a9c824ece
22 changed files with 54 additions and 238 deletions

View file

@ -580,8 +580,7 @@ class os: AllStatic {
// Reading directories.
static DIR* opendir(const char* dirname);
static int readdir_buf_size(const char *path);
static struct dirent* readdir(DIR* dirp, dirent* dbuf);
static struct dirent* readdir(DIR* dirp);
static int closedir(DIR* dirp);
// Dynamic library extension