8378369: TestJhsdbJstackMixedWithVDSOCallCore.java fails if missing vdso64.so

Reviewed-by: cjplummer, ayang
This commit is contained in:
Yasumasa Suenaga 2026-02-21 11:39:52 +00:00
parent fac338b03e
commit d4dc5e49c1

View File

@ -40,6 +40,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
import java.util.List;
import java.util.NoSuchElementException;
public class SATestUtils {
/**
@ -334,6 +335,9 @@ public class SATestUtils {
String file = buildID.substring(2);
debuginfoPath = Path.of("/usr/lib/debug/.build_id", dir, file + ".debug");
exists = Files.exists(debuginfoPath);
} catch (NoSuchElementException _) {
// return null if vDSO not found.
return null;
}
}
return exists ? debuginfoPath.toString() : null;