RFR: 8242847: G1 should not clear mark bitmaps with no marks

Ivan Walulya iwalulya at openjdk.java.net
Mon Aug 23 07:59:42 UTC 2021


Hi all,

Please review this change to bound the range of bitmap clearing for each region using the liveness data collected during marking. For the Concurrent Undo Mark cycle, the liveness information (next_top_at_mark_start and live_words) is in sync wrt. the _next_mark_bitmap that needs clearing. Hence, we use these details to clear only bitmaps for regions that were dirtied and need clearing i.e. only clear between [bottom, ntams), and only clear bitmaps for regions that had at least one bit set (i.e. have some live data).

Testing: Tier 1-3.

-------------

Commit messages:
 - add comments and refactor rename
 - create private functions
 - space
 - 8242847: G1 should not clear mark bitmaps with no marks

Changes: https://git.openjdk.java.net/jdk/pull/5213/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5213&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8242847
  Stats: 62 lines in 5 files changed: 46 ins; 7 del; 9 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5213.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5213/head:pull/5213

PR: https://git.openjdk.java.net/jdk/pull/5213



More information about the hotspot-gc-dev mailing list