Skip to content

Commit

Permalink
8319633: runtime/posixSig/TestPosixSig.java intermittent timeouts on …
Browse files Browse the repository at this point in the history
…UNIX

Reviewed-by: mbaesken, mdoerr
  • Loading branch information
Joachim Kern authored and TheRealMDoerr committed Dec 18, 2023
1 parent fccb0a1 commit dcf6eea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,17 @@ public static void main(String[] args) throws Throwable {
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");

Expand Down

1 comment on commit dcf6eea

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.