JDK-8329203 : Parallel: Investigate Mark-Compact for Full GC to decrease memory usage
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-03-27
  • Updated: 2024-07-25
  • Resolved: 2024-07-25
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 23
23 b25Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8337138 :  
Description
Parallel full-GC employs two bitmaps to track object start and end points. This configuration necessitates a larger memory footprint, with each bitmap consuming approximately 1.5% of the heap size.

Transitioning to the mark-compact algorithm (the same one used in Serial/G1 full-GC) can mitigate the memory footprint and bring it more in line with other garbage collectors.

Under the new algorithm, after marking, three phases ensue: calculating new addresses for objects, forwarding them, and relocating objects to their new addresses.

The relocation phase will largely reuse the logic and implementation from the existing algorithm.
Comments
Changeset: 94af3c23 Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2024-05-23 07:13:57 +0000 URL: https://git.openjdk.org/jdk/commit/94af3c23ea09ef2869cdc666d8170a655a0b3602
23-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19101 Date: 2024-05-06 10:31:48 +0000
06-05-2024