JDK-8351405 : G1: Collection set early pruning causes suboptimal region selection
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 25
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-03-07
  • Updated: 2025-03-17
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 25
25Unresolved
Related Reports
Relates :  
Description
When pruning the collection set before rebuild, only freed space is taken into account when selecting these regions (i.e. gc-efficiency).

This can cause G1 selecting extremely bad to evacuate regions (with low efficiency), which in turn then can cause pause time spikes, particularly in combination with grouping.

One option is to improve the gc efficiency calculation by using more information, like number of incoming references calculated during marking, so improve the selection.

Another option is to select more regions to build the remembered sets for and prune later again.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24076 Date: 2025-03-17 11:19:02 +0000
17-03-2025