Skip to content

Commit 67762de

Browse files
author
Thomas Schatzl
committedFeb 23, 2021
8262197: JDK-8242032 uses wrong contains_reference() in assertion code
Reviewed-by: ayang, kbarrett
1 parent 9d9bedd commit 67762de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/gc/g1/heapRegionRemSet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void OtherRegionsTable::add_reference(OopOrNarrowOopStar from, uint tid) {
148148

149149
// Rechecking if the region is coarsened, while holding the lock.
150150
if (is_region_coarsened(from_hrm_ind)) {
151-
assert(contains_reference(from), "We just found " PTR_FORMAT " in the Coarse table", p2i(from));
151+
assert(contains_reference_locked(from), "We just found " PTR_FORMAT " in the Coarse table", p2i(from));
152152
return;
153153
}
154154

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Feb 23, 2021

@openjdk-notifier[bot]
Please sign in to comment.