Skip to content
Permalink
Browse files
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
  • Loading branch information
Thomas Schatzl committed Oct 16, 2021
1 parent 96fef40 commit bfcf6a29a16bc12d77a897fbec304868957c3188
Showing 1 changed file with 1 addition and 1 deletion.
@@ -111,7 +111,7 @@ template <class T> void G1ParScanThreadState::write_ref_field_post(T* p, oop obj
// References to the current collection set are references to objects that failed
// evacuation. Currently these regions are always relabelled as old without
// remembered sets, so skip them.
assert(dest_attr.is_in_cset() == (obj->forwardee() == obj),
assert(dest_attr.is_in_cset() == (obj->is_forwarded() && obj->forwardee() == obj),
"Only evac-failed objects must be in the collection set here but " PTR_FORMAT " is not", p2i(obj));
if (dest_attr.is_in_cset()) {
return;

1 comment on commit bfcf6a2

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on bfcf6a2 Oct 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.