JDK-8296796 : Provide clean, platform-agnostic interface to C-heap trimming
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-11-10
  • Updated: 2023-07-25
  • Resolved: 2022-11-19
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 17 JDK 20
17.0.9Fixed 20 b25Fixed
Related Reports
Relates :  
Description
 This is a breakout from JDK-8293114, which is starved for reviews. So I attempt to break up that fix into smaller units which are hopefully easier to review separately.

We can trim the C-heap manually using jcmd since JDK-8268893. This patch reforms this API somewhat, cleaning it up in an OS-agnostic way. That will allow us to add implementions for other platforms (I have this on my list for AIX at least).
Comments
Fix Request (17u) Cleans up related code, provides the grounds for eventual backport of JDK-8293114. Does not apply cleanly due to contextual differences in `#include` blocks and copyright lines. 17u PR acked by Thomas. Testing passes.
24-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1615 Date: 2023-07-21 15:56:15 +0000
21-07-2023

Changeset: 0845b39c Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2022-11-19 11:52:55 +0000 URL: https://git.openjdk.org/jdk/commit/0845b39caf6f04dca9cb7a5852f05b4b5ffbc034
19-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11089 Date: 2022-11-10 13:23:34 +0000
10-11-2022