File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2330,6 +2330,11 @@ void FileMapInfo::fixup_mapped_heap_regions() {
2330
2330
" Null closed_heap_regions array with non-zero count" );
2331
2331
G1CollectedHeap::heap ()->fill_archive_regions (closed_heap_regions,
2332
2332
num_closed_heap_regions);
2333
+ // G1 marking uses the BOT for object chunking during marking in
2334
+ // G1CMObjArrayProcessor::process_slice(); for this reason we need to
2335
+ // initialize the BOT for closed archive regions too.
2336
+ G1CollectedHeap::heap ()->populate_archive_regions_bot_part (closed_heap_regions,
2337
+ num_closed_heap_regions);
2333
2338
}
2334
2339
2335
2340
// do the same for mapped open archive heap regions
@@ -2342,11 +2347,6 @@ void FileMapInfo::fixup_mapped_heap_regions() {
2342
2347
// fast G1BlockOffsetTablePart::block_start operations for any given address
2343
2348
// within the open archive regions when trying to find start of an object
2344
2349
// (e.g. during card table scanning).
2345
- //
2346
- // This is only needed for open archive regions but not the closed archive
2347
- // regions, because objects in closed archive regions never reference objects
2348
- // outside the closed archive regions and they are immutable. So we never
2349
- // need their BOT during garbage collection.
2350
2350
G1CollectedHeap::heap ()->populate_archive_regions_bot_part (open_heap_regions,
2351
2351
num_open_heap_regions);
2352
2352
}
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Mar 24, 2022
Review
Issues