src/hotspot/os/linux/os_linux.cpp
changeset 57599 98dfaf0f9442
parent 55624 cb90a20eb99a
child 57651 ddae2da329ed
--- a/src/hotspot/os/linux/os_linux.cpp	Tue Jul 30 17:31:29 2019 -0400
+++ b/src/hotspot/os/linux/os_linux.cpp	Wed Jul 31 00:02:01 2019 -0400
@@ -2676,16 +2676,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 // 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 @@
 }
 
 static int check_pending_signals() {
-  Atomic::store(0, &sigint_count);
   for (;;) {
     for (int i = 0; i < NSIG + 1; i++) {
       jint n = pending_signals[i];