mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8227250: UserHandler contains ancient LinuxThreads code
Reviewed-by: hseigel, dcubed
This commit is contained in:
parent
3c80eb4f3c
commit
9e4054bd0e
3 changed files with 0 additions and 29 deletions
|
@ -2676,16 +2676,7 @@ void os::print_jni_name_suffix_on(outputStream* st, int args_size) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// sun.misc.Signal support
|
||||
|
||||
static volatile jint sigint_count = 0;
|
||||
|
||||
static void UserHandler(int sig, void *siginfo, void *context) {
|
||||
// 4511530 - sem_post is serialized and handled by the manager thread. When
|
||||
// the program is interrupted by Ctrl-C, SIGINT is sent to every thread. We
|
||||
// don't want to flood the manager thread with sem_post requests.
|
||||
if (sig == SIGINT && Atomic::add(1, &sigint_count) > 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ctrl-C is pressed during error reporting, likely because the error
|
||||
// handler fails to abort. Let VM die immediately.
|
||||
if (sig == SIGINT && VMError::is_error_reported()) {
|
||||
|
@ -2758,7 +2749,6 @@ void os::signal_notify(int sig) {
|
|||
}
|
||||
|
||||
static int check_pending_signals() {
|
||||
Atomic::store(0, &sigint_count);
|
||||
for (;;) {
|
||||
for (int i = 0; i < NSIG + 1; i++) {
|
||||
jint n = pending_signals[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue