RFR: 8292695: SIGQUIT and jcmd attaching mechanism does not work with signal chaining library

Man Cao manc at openjdk.org
Tue Aug 23 01:05:22 UTC 2022


On Tue, 23 Aug 2022 00:29:28 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Should I implement sendCtrlBreak() outside of /vmTestbase in this PR then?
>> The new test did run and pass on Github pre-submit check.
>
> I'm not sure we need yet-another-signalling-mechanism for tests. Did you look at  ./hotspot/jtreg/runtime/signal/ ? I'm unclear why TestSigquit is not failing due to this issue?

Yes, I saw the tests under hotspot/jtreg/runtime/signal. TestSigquit is not failing due to the `-Xrs` flag, which prevents the JVM from installing any signal handler for SIGQUIT, so that the test can still install its own handler.

I didn't find any test to check that SIGQUIT would print a thread dump on stdout. It is good to have a test for this functionality.

-------------

PR: https://git.openjdk.org/jdk/pull/9955


More information about the hotspot-runtime-dev mailing list