mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
Merge
This commit is contained in:
commit
82847e4ec0
812 changed files with 22235 additions and 13150 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <dlfcn.h>
|
||||
#include <thread.h>
|
||||
#include <synch.h>
|
||||
#include "jni.h"
|
||||
#include "jvm_md.h"
|
||||
|
||||
#define bool int
|
||||
|
@ -242,14 +243,16 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) {
|
|||
}
|
||||
|
||||
/* The four functions for the jvm to call into */
|
||||
void JVM_begin_signal_setting() {
|
||||
JNIEXPORT void JNICALL
|
||||
JVM_begin_signal_setting() {
|
||||
signal_lock();
|
||||
jvm_signal_installing = true;
|
||||
tid = thr_self();
|
||||
signal_unlock();
|
||||
}
|
||||
|
||||
void JVM_end_signal_setting() {
|
||||
JNIEXPORT void JNICALL
|
||||
JVM_end_signal_setting() {
|
||||
signal_lock();
|
||||
jvm_signal_installed = true;
|
||||
jvm_signal_installing = false;
|
||||
|
@ -257,7 +260,8 @@ void JVM_end_signal_setting() {
|
|||
signal_unlock();
|
||||
}
|
||||
|
||||
struct sigaction *JVM_get_signal_action(int sig) {
|
||||
JNIEXPORT struct sigaction * JNICALL
|
||||
JVM_get_signal_action(int sig) {
|
||||
if (sact == NULL) {
|
||||
allocate_sact();
|
||||
}
|
||||
|
@ -268,6 +272,7 @@ struct sigaction *JVM_get_signal_action(int sig) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int JVM_get_libjsig_version() {
|
||||
JNIEXPORT int JNICALL
|
||||
JVM_get_libjsig_version() {
|
||||
return JSIG_VERSION_1_4_1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue