# HG changeset patch # User dtitov # Date 1561081664 25200 # Node ID ced62a6a7bbefc9149e1df1f90617b047d34c41b # Parent de348436746611c6f588fbeb0d8e2d4fd3c432f8 8220175: serviceability/dcmd/framework/VMVersionTest.java fails with a timeout Reviewed-by: sspitsyn, cjplummer diff -r de3484367466 -r ced62a6a7bbe src/hotspot/os/linux/perfMemory_linux.cpp --- 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;