JDK-8263564 : Consolidate POSIX code for runtime exit support: os::shutdown, os::abort and os::die
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-14
  • Updated: 2024-12-11
  • Resolved: 2021-03-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16 JDK 17
16.0.2Fixed 17 b14Fixed
Related Reports
Relates :  
Description
The runtime exit code (os::shutdown, os::abort and os::die) on POSIX platforms is almost identical - Linux has one extra action in os::abort. This code should be shared via os_posix.cpp (note os::exit is already shared via os_posix.inline.hpp).
Comments
Fix Request (16u) Backporting this fix simplifies backporting other fixes in this area. The original bug fix patch applied cleanly except for files os_linux.cpp and os_posix.cpp. But, the resulting hand merge resulted in code very similar to the original fix. After applying the patch to a JDK-16u repo and modifying the appropriate os_<..>.cpp files, the fix was regression tested by running Mach5 tiers 1 and 2 on Linux, Windows, and Mac OS, and running tiers 3-5 on Linux x64.
22-03-2021

Changeset: 554dd29f Author: David Holmes <dholmes@openjdk.org> Date: 2021-03-15 02:03:22 +0000 URL: https://git.openjdk.java.net/jdk/commit/554dd29f
15-03-2021