JDK-8159979 : During initial mark, preparing all regions for marking may take a significant amount of time
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-06-21
  • Updated: 2021-09-09
  • Resolved: 2021-08-31
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 18
18 b13Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
During initial mark, in G1ConcurrentMark::checkpointRootsInitialPre() G1 iterates over all regions to set the next tams pointer to top.

On heaps with many regions 20k+ this can take a while, as this phase is single-threaded.
Comments
Changeset: 841e3943 Author: Ivan Walulya <iwalulya@openjdk.org> Date: 2021-08-31 12:30:14 +0000 URL: https://git.openjdk.java.net/jdk/commit/841e3943c480c95409446bb35fb9a56d7fc48c8a
31-08-2021