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

Ivan Walulya iwalulya at openjdk.java.net
Tue Aug 24 10:29:57 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.

Ivan Walulya has updated the pull request incrementally with one additional commit since the last revision:

  trailing space

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5213/files
  - new: https://git.openjdk.java.net/jdk/pull/5213/files/0ce053a3..3c7d1325

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5213&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5213&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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