7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "prims/jvm.h"
28 #include "runtime/interfaceSupport.hpp"
29 #include "runtime/osThread.hpp"
30
31 #include <signal.h>
32
33
34 // sun.misc.Signal ///////////////////////////////////////////////////////////
35 // Signal code is mostly copied from classic vm, signals_md.c 1.4 98/08/23
36 /*
37 * This function is included primarily as a debugging aid. If Java is
38 * running in a console window, then pressing <CTRL-\\> will cause
39 * the current state of all active threads and monitors to be written
40 * to the console window.
41 */
42
43 JVM_ENTRY_NO_ENV(void*, JVM_RegisterSignal(jint sig, void* handler))
44 // Copied from classic vm
45 // signals_md.c 1.4 98/08/23
46 void* newHandler = handler == (void *)2
47 ? os::user_handler()
|
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "jvm.h"
28 #include "runtime/interfaceSupport.hpp"
29 #include "runtime/osThread.hpp"
30
31 #include <signal.h>
32
33
34 // sun.misc.Signal ///////////////////////////////////////////////////////////
35 // Signal code is mostly copied from classic vm, signals_md.c 1.4 98/08/23
36 /*
37 * This function is included primarily as a debugging aid. If Java is
38 * running in a console window, then pressing <CTRL-\\> will cause
39 * the current state of all active threads and monitors to be written
40 * to the console window.
41 */
42
43 JVM_ENTRY_NO_ENV(void*, JVM_RegisterSignal(jint sig, void* handler))
44 // Copied from classic vm
45 // signals_md.c 1.4 98/08/23
46 void* newHandler = handler == (void *)2
47 ? os::user_handler()
|