25 lines
752 B
Diff
25 lines
752 B
Diff
Date: Sat, 30 Mar 2024 07:11:17 +0000
|
|
Subject: 8220175: serviceability/dcmd/framework/VMVersionTest.java
|
|
fails with a timeout
|
|
|
|
---
|
|
hotspot/src/os/linux/vm/perfMemory_linux.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hotspot/src/os/linux/vm/perfMemory_linux.cpp b/hotspot/src/os/linux/vm/perfMemory_linux.cpp
|
|
index b45032ed..4746531f 100644
|
|
--- a/hotspot/src/os/linux/vm/perfMemory_linux.cpp
|
|
+++ b/hotspot/src/os/linux/vm/perfMemory_linux.cpp
|
|
@@ -659,7 +659,7 @@ static int get_namespace_pid(int vmid) {
|
|
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;
|
|
--
|
|
2.17.1
|
|
|