mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8319633: runtime/posixSig/TestPosixSig.java intermittent timeouts on UNIX
Reviewed-by: mbaesken, mdoerr
This commit is contained in:
committed by
Vitaly Provodin
parent
e92bb240ab
commit
07cd01e408
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user