Skip to content

Commit 2662f25

Browse files
author
Thomas Schatzl
committed
Some more checking
1 parent 7a10242 commit 2662f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/g1/g1CollectedHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2634,7 +2634,7 @@ void G1CollectedHeap::free_region(HeapRegion* hr, FreeRegionList* free_list) {
26342634
assert(!hr->is_free(), "the region should not be free");
26352635
assert(!hr->is_empty(), "the region should not be empty");
26362636
assert(_hrm.is_available(hr->hrm_index()), "region should be committed");
2637-
assert(!hr->has_pinned_objects(),
2637+
guarantee(!hr->has_pinned_objects(),
26382638
"must not free a region which contains pinned objects");
26392639

26402640
// Reset region metadata to allow reuse.

0 commit comments

Comments
 (0)