mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8200178: Remove mapfiles for JDK native libraries
Reviewed-by: erikj, alanb, mchung, prr, weijun
This commit is contained in:
parent
2c292c30b2
commit
89f6ccb93e
157 changed files with 559 additions and 5564 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "jni.h"
|
||||
|
||||
#define bool int
|
||||
#define true 1
|
||||
|
@ -140,11 +141,13 @@ static sa_handler_t set_signal(int sig, sa_handler_t disp, bool is_sigset) {
|
|||
}
|
||||
}
|
||||
|
||||
sa_handler_t signal(int sig, sa_handler_t disp) {
|
||||
JNIEXPORT sa_handler_t JNICALL
|
||||
signal(int sig, sa_handler_t disp) {
|
||||
return set_signal(sig, disp, false);
|
||||
}
|
||||
|
||||
sa_handler_t sigset(int sig, sa_handler_t disp) {
|
||||
JNIEXPORT sa_handler_t JNICALL
|
||||
sigset(int sig, sa_handler_t disp) {
|
||||
return set_signal(sig, disp, true);
|
||||
}
|
||||
|
||||
|
@ -161,7 +164,8 @@ static int call_os_sigaction(int sig, const struct sigaction *act,
|
|||
return (*os_sigaction)(sig, act, oact);
|
||||
}
|
||||
|
||||
int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) {
|
||||
JNIEXPORT int JNICALL
|
||||
sigaction(int sig, const struct sigaction *act, struct sigaction *oact) {
|
||||
int res;
|
||||
bool sigused;
|
||||
struct sigaction oldAct;
|
||||
|
@ -206,7 +210,8 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) {
|
|||
}
|
||||
|
||||
/* The three functions for the jvm to call into. */
|
||||
void JVM_begin_signal_setting() {
|
||||
JNIEXPORT void JNICALL
|
||||
JVM_begin_signal_setting() {
|
||||
signal_lock();
|
||||
sigemptyset(&jvmsigs);
|
||||
jvm_signal_installing = true;
|
||||
|
@ -214,7 +219,8 @@ void JVM_begin_signal_setting() {
|
|||
signal_unlock();
|
||||
}
|
||||
|
||||
void JVM_end_signal_setting() {
|
||||
JNIEXPORT void JNICALL
|
||||
JVM_end_signal_setting() {
|
||||
signal_lock();
|
||||
jvm_signal_installed = true;
|
||||
jvm_signal_installing = false;
|
||||
|
@ -222,7 +228,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) {
|
||||
/* Does race condition make sense here? */
|
||||
if (sigismember(&jvmsigs, sig)) {
|
||||
return &sact[sig];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue