8377710: Test serviceability/sa/TestJhsdbJstackMixed.java encountered Driver timeout

Reviewed-by: dholmes, cjplummer
This commit is contained in:
Yasumasa Suenaga 2026-02-13 06:35:17 +00:00
parent 9c75afb6d0
commit 3e9911c19f

View File

@ -27,6 +27,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import jdk.test.lib.JDKToolLauncher;
import jdk.test.lib.Platform;
import jdk.test.lib.SA.SATestUtils;
import jdk.test.lib.Utils;
import jdk.test.lib.apps.LingeredApp;
@ -35,7 +36,7 @@ import jdk.test.lib.process.OutputAnalyzer;
/**
* @test
* @key randomness
* @bug 8208091 8374469
* @bug 8208091 8374469 8377710
* @requires (os.family == "linux" | os.family == "windows") & (vm.hasSA)
* @requires (os.arch != "riscv64" | !(vm.cpu.features ~= ".*qemu.*"))
* @library /test/lib
@ -152,6 +153,11 @@ public class TestJhsdbJstackMixed {
System.err.println(out.getStderr());
out.shouldContain(LingeredAppWithNativeMethod.THREAD_NAME);
out.shouldNotContain("sun.jvm.hotspot.debugger.UnmappedAddressException:");
if (Platform.isWindows()) {
// We need to check stdout/stderr only once on Windows.
break;
}
if (isFibAndAlignedAddress(out.asLines())) {
System.out.println("DEBUG: Test triggered interesting condition.");
out.shouldNotContain("sun.jvm.hotspot.debugger.UnmappedAddressException:");
@ -160,7 +166,6 @@ public class TestJhsdbJstackMixed {
}
System.out.println("DEBUG: Iteration: " + (i + 1)
+ " - Test didn't trigger interesting condition.");
out.shouldNotContain("sun.jvm.hotspot.debugger.UnmappedAddressException:");
}
System.out.println("DEBUG: Test didn't trigger interesting condition " +
"but no UnmappedAddressException was thrown. PASS!");