• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Apr-2020-

READMEH A D17-Apr-20202.5 KiB6041

SigTestDriver.javaH A D17-Apr-20206.6 KiB181134

TestSigalrm.javaH A D17-Apr-20201.3 KiB360

TestSigbus.javaH A D17-Apr-20201.3 KiB360

TestSigcld.javaH A D17-Apr-20201.3 KiB360

TestSigcont.javaH A D17-Apr-20201.3 KiB360

TestSigemt.javaH A D17-Apr-20201.3 KiB360

TestSigfpe.javaH A D17-Apr-20201.3 KiB360

TestSigfreeze.javaH A D17-Apr-20201.3 KiB360

TestSighup.javaH A D17-Apr-20201.3 KiB360

TestSigill.javaH A D17-Apr-20201.3 KiB360

TestSigint.javaH A D17-Apr-20201.3 KiB360

TestSigiot.javaH A D17-Apr-20201.3 KiB360

TestSiglost.javaH A D17-Apr-20201.3 KiB360

TestSiglwp.javaH A D17-Apr-20201.3 KiB360

TestSigpipe.javaH A D17-Apr-20201.3 KiB360

TestSigpoll.javaH A D17-Apr-20201.3 KiB360

TestSigprof.javaH A D17-Apr-20201.3 KiB360

TestSigpwr.javaH A D17-Apr-20201.3 KiB360

TestSigquit.javaH A D17-Apr-20201.4 KiB360

TestSigsegv.javaH A D17-Apr-20201.3 KiB360

TestSigstop.javaH A D17-Apr-20201.3 KiB360

TestSigsys.javaH A D17-Apr-20201.3 KiB360

TestSigterm.javaH A D17-Apr-20201.4 KiB360

TestSigthaw.javaH A D17-Apr-20201.3 KiB360

TestSigtrap.javaH A D17-Apr-20201.3 KiB360

TestSigtstp.javaH A D17-Apr-20201.3 KiB360

TestSigttin.javaH A D17-Apr-20201.3 KiB360

TestSigttou.javaH A D17-Apr-20201.3 KiB360

TestSigurg.javaH A D17-Apr-20201.3 KiB360

TestSigusr1.javaH A D17-Apr-20201.3 KiB360

TestSigusr2.javaH A D17-Apr-20201.3 KiB360

TestSigvtalrm.javaH A D17-Apr-20201.3 KiB360

TestSigwinch.javaH A D17-Apr-20201.3 KiB360

TestSigxcpu.javaH A D17-Apr-20201.3 KiB360

TestSigxfsz.javaH A D17-Apr-20201.3 KiB360

TestSigxres.javaH A D17-Apr-20201.3 KiB360

exesigtest.cH A D17-Apr-202011.4 KiB473352

README

1Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
2DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
4This code is free software; you can redistribute it and/or modify it
5under the terms of the GNU General Public License version 2 only, as
6published by the Free Software Foundation.
7
8This code is distributed in the hope that it will be useful, but WITHOUT
9ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11version 2 for more details (a copy is included in the LICENSE file that
12accompanied this code).
13
14You should have received a copy of the GNU General Public License version
152 along with this work; if not, write to the Free Software Foundation,
16Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
18Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19or visit www.oracle.com if you need additional information or have any
20questions.
21
22
23Briefly, the tests cover the following scenarios:
241. prepre
25   set signal handlers -> create JVM -> send signals -> destroy JVM -> check signal handlers were called
26
272. prepost
28   set signal handlers -> create JVM -> destroy JVM -> send signals  -> check signal handlers were called
29
303. postpre
31   create JVM ->set signal handlers -> send signals -> destroy JVM -> check signal handlers were called
32
334. postpost
34   create JVM -> set signal handlers -> destroy JVM -> send signals  -> check signal handlers were called
35
36There is one more scenario called 'nojvm'.
37In this case no jvm is created, so pure signal testing is done.
38
39Signal handlers don't do anything, so the only fact that signal handler was called is checked.
40Also 2 different ways of setting signal handlers are tested: sigaction, sigset.
41
42For 'postpre' and 'postpro' libjsig.so is used to chain signal handlers behind VM installed ones.
43
44=> Current tests cover the following cases (don't count 'nojvm' scenario):
451. Support for pre-installed signal handlers when the HotSpot VM is created.
462. Support for signal handler installation after the HotSpot VM is created inside JNI code
47
48
49Notes:
50
51SIGQUIT, SIGTERM, SIGINT, and SIGHUP signals cannot be chained.
52If the application needs to handle these signals, the -Xrs option needs
53to be specified. So, test these signals only with -Xrs flag.
54
55On Linux and Mac OS X, SIGUSR2 is used to implement suspend and resume. So,
56don't test SIGUSR2 on Linux and Mac OS X.
57
58SIGJVM1 and SIGJVM2 exist only on Solaris and are reserved for exclusive use
59by the JVM. So don't test SIGJVM1 and SIGJVM2.
60