JDK-8306920 : G1: Calculate garbage bytes for evacuation failed regions from marked live bytes
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2023-04-26
  • Updated: 2023-05-26
  • Resolved: 2023-05-26
Related Reports
Blocks :  
Description
For prompt evacuation of unpinned pinned regions (or evacuation failed regions) in JDK-8140326 we need to determine whether to keep their remembered sets or not.

The important metric here is live bytes, i.e. number of bytes live after evacuation failure.

The JDK-8140326 change needs that metric at the start of the post evacuation phase (before post evacuation phase 1); currently we calculate this _in_ post evacuation phase 1 which is too late.

Change the code to use the existing marking infrastructure that collects live bytes for evacuation failed regions so that the result is available at the correct time for JDK-8140326
Comments
A simpler solution will be rolled into JDK-8140326 that obsoletes this change.
26-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14118 Date: 2023-05-24 09:38:23 +0000
24-05-2023