changeset 55457 | ced62a6a7bbe |
parent 53911 | 65f2a401e0eb |
child 55733 | 9cfb9387a9e8 |
--- a/src/hotspot/os/linux/perfMemory_linux.cpp Thu Jun 20 14:24:13 2019 -0700 +++ b/src/hotspot/os/linux/perfMemory_linux.cpp Thu Jun 20 18:47:44 2019 -0700 @@ -661,7 +661,7 @@ if (fp) { int pid, nspid; int ret; - while (!feof(fp)) { + while (!feof(fp) && !ferror(fp)) { ret = fscanf(fp, "NSpid: %d %d", &pid, &nspid); if (ret == 1) { break;