Add a test for SIGQUIT handling under -XX:+ReduceSignalUsage

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 20
    • Component/s: hotspot

      During review for JDK-8292695, we tried to add a test that checks that under -XX:+ReduceSignalUsage, SIGQUIT should make the process terminate abnormally.

      However, this is difficult due to JDK-8234262. Even the workaround of passing -XX:+ReduceSignalUsage to the parent process did not work, probably due to how jtreg launches the parent process with "@run main/othervm -XX:+ReduceSignalUsage". Another possible workaround is to write a shell test instead of using a Java process (ProcessBuilder API) to launch the subprocess. I uploaded the non-working version here: https://github.com/caoman/jdk/commit/73e3a5f90985fcad9a383c704429cefb07011932

      It is better to wait for JDK-8234262 to be fixed, then add this test.

            Assignee:
            Unassigned
            Reporter:
            Man Cao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: