8319633: runtime/posixSig/TestPosixSig.java intermittent timeouts on UNIX

Reviewed-by: mbaesken, mdoerr
This commit is contained in:
Joachim Kern
2023-12-18 11:04:32 +00:00
committed by Vitaly Provodin
parent e92bb240ab
commit 07cd01e408

View File

@@ -44,8 +44,17 @@ public class TestPosixSig {
if (args.length == 0) {
// Create a new java process for the TestPsig Java/JNI test.
// We run the VM in interpreted mode, because the JIT might mark
// a Java method as not-entrant, which means turning the first instruction
// into an illegal one. Calling such a method after establishing
// the new SIGILL signal handler with TestPosixSig.changeSigActionFor(4)
// below, but before the JNI checker noted and reacted on this signal handler
// modification, the JVM may crash or hang in an endless loop, where the
// illegal instruction will be continously executed, raising SIGILL, and
// the signal handler will return to the illegal instruction again...
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+CheckJNICalls",
"-Xint",
"-Djava.library.path=" + libpath + ":.",
"TestPosixSig", "dummy");