Details
-
Bug
-
Resolution: Fixed
-
P3
-
11, 12, 13, 14
-
SIGINFO is defined on BSD-like platforms.
-
b20
-
other
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246072 | 13.0.4 | David Holmes | P3 | Resolved | Fixed | b03 |
JDK-8233805 | 11.0.7-oracle | Bob Vandette | P3 | Resolved | Fixed | b01 |
JDK-8236768 | 11.0.7 | David Holmes | P3 | Resolved | Fixed | b01 |
Description
It used to work fine in older versions.
* SIGINFO was available in JDK 8 (jvm_bsd.cpp) but it seems it was accidentally removed during consolidation of the signal list in os_posix.cpp.
* SIGINFO is the only missing signal compared to signal lists in JDK 8.
The fix is simple:
{noformat}
diff --git a/src/hotspot/os/posix/os_posix.cpp b/src/hotspot/os/posix/os_posix.cpp
index 017a107300..cdada0093e 100644
--- a/src/hotspot/os/posix/os_posix.cpp
+++ b/src/hotspot/os/posix/os_posix.cpp
@@ -784,6 +784,9 @@ static const struct {
{ SIGHUP, "SIGHUP" },
{ SIGILL, "SIGILL" },
{ SIGINT, "SIGINT" },
+#ifdef SIGINFO
+ { SIGINFO, "SIGINFO" },
+#endif
#ifdef SIGIO
{ SIGIO, "SIGIO" },
#endif
{noformat}
* SIGINFO was available in JDK 8 (jvm_bsd.cpp) but it seems it was accidentally removed during consolidation of the signal list in os_posix.cpp.
* SIGINFO is the only missing signal compared to signal lists in JDK 8.
The fix is simple:
{noformat}
diff --git a/src/hotspot/os/posix/os_posix.cpp b/src/hotspot/os/posix/os_posix.cpp
index 017a107300..cdada0093e 100644
--- a/src/hotspot/os/posix/os_posix.cpp
+++ b/src/hotspot/os/posix/os_posix.cpp
@@ -784,6 +784,9 @@ static const struct {
{ SIGHUP, "SIGHUP" },
{ SIGILL, "SIGILL" },
{ SIGINT, "SIGINT" },
+#ifdef SIGINFO
+ { SIGINFO, "SIGINFO" },
+#endif
#ifdef SIGIO
{ SIGIO, "SIGIO" },
#endif
{noformat}
Attachments
Issue Links
- backported by
-
JDK-8233805 new sun.misc.Signal("INFO") throws IllegalArgumentException since JDK11
- Resolved
-
JDK-8236768 new sun.misc.Signal("INFO") throws IllegalArgumentException since JDK11
- Resolved
-
JDK-8246072 new sun.misc.Signal("INFO") throws IllegalArgumentException since JDK11
- Resolved