mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 13:40:18 +00:00
8378369: TestJhsdbJstackMixedWithVDSOCallCore.java fails if missing vdso64.so
Reviewed-by: cjplummer, ayang
This commit is contained in:
parent
fac338b03e
commit
d4dc5e49c1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user