Skip to content

Commit bfcf6a2

Browse files
author
Thomas Schatzl
committed
8275277: assert(dest_attr.is_in_cset() == (obj->forwardee() == obj)) failed: Only evac-failed objects must be in the collection set here but <addr> is not
Reviewed-by: ayang, rkennke
1 parent 96fef40 commit bfcf6a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/g1/g1ParScanThreadState.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ template <class T> void G1ParScanThreadState::write_ref_field_post(T* p, oop obj
111111
// References to the current collection set are references to objects that failed
112112
// evacuation. Currently these regions are always relabelled as old without
113113
// remembered sets, so skip them.
114-
assert(dest_attr.is_in_cset() == (obj->forwardee() == obj),
114+
assert(dest_attr.is_in_cset() == (obj->is_forwarded() && obj->forwardee() == obj),
115115
"Only evac-failed objects must be in the collection set here but " PTR_FORMAT " is not", p2i(obj));
116116
if (dest_attr.is_in_cset()) {
117117
return;

0 commit comments

Comments
 (0)