Skip to content

Commit

Permalink
forgotten fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Schatzl committed Feb 27, 2024
1 parent 7eb4ae5 commit 4ebd65b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/gc/g1/g1HeapVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,10 @@ void G1HeapVerifier::verify_bitmap_clear(bool from_tams) {
G1VerifyBitmapClear(bool from_tams) : _from_tams(from_tams) { }

virtual bool do_heap_region(HeapRegion* r) {
G1CMBitMap* bitmap = G1CollectedHeap::heap()->concurrent_mark()->mark_bitmap();
G1ConcurrentMark* cm = G1CollectedHeap::heap()->concurrent_mark();
G1CMBitMap* bitmap = cm->mark_bitmap();

HeapWord* start = _from_tams ? r->top_at_mark_start() : r->bottom();
HeapWord* start = _from_tams ? cm->top_at_mark_start(r) : r->bottom();

HeapWord* mark = bitmap->get_next_marked_addr(start, r->end());
guarantee(mark == r->end(), "Found mark at " PTR_FORMAT " in region %u from start " PTR_FORMAT, p2i(mark), r->hrm_index(), p2i(start));
Expand Down

0 comments on commit 4ebd65b

Please sign in to comment.