Skip to content

Commit

Permalink
Fix G1/HeapRegion rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rkennke committed Jun 28, 2024
1 parent 3629c38 commit 0616f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1ParScanThreadState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void G1ParScanThreadState::start_partial_objarray(G1HeapRegionAttr dest_attr,
assert(obj->is_objArray(), "precondition");
objArrayOop array = objArrayOop(obj);
// Skip the card enqueue iff the object (to_array) is in survivor region.
// However, HeapRegion::is_survivor() is too expensive here.
// However, G1HeapRegion::is_survivor() is too expensive here.
// Instead, we use dest_attr.is_young() because the two values are always
// equal: successfully allocated young regions must be survivor regions.
assert(dest_attr.is_young() == _g1h->heap_region_containing(array)->is_survivor(), "must be");
Expand Down

0 comments on commit 0616f4f

Please sign in to comment.