Skip to content

Commit

Permalink
Updated comment based on the review feedback from Thomas.
Browse files Browse the repository at this point in the history
  • Loading branch information
jianglizhou committed May 31, 2021
1 parent 297b3e0 commit 0ab6edc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotspot/share/cds/filemap.cpp
Expand Up @@ -2049,8 +2049,10 @@ void FileMapInfo::fixup_mapped_heap_regions() {
num_open_archive_heap_ranges);

// Populate the open archive regions' G1BlockOffsetTableParts. That ensures
// fast G1BlockOffsetTablePart::block_start operations for a given address
// within the open archive regions during G1RemSet::refine_card_concurrently.
// fast G1BlockOffsetTablePart::block_start operations for any given address
// within the open archive regions when trying to find start of an object
// (e.g. during card table scanning).
//
// This is only needed for open archive regions, but not the closed archive
// regions, because objects in closed archive regions are 'immutable'.
G1CollectedHeap::heap()->populate_archive_regions_bot_part(open_archive_heap_ranges,
Expand Down

0 comments on commit 0ab6edc

Please sign in to comment.