Skip to content

Commit 4b06c4a

Browse files
author
duke
committedOct 16, 2021
Automatic merge of jdk:master into master
2 parents 1a2d7ff + bfcf6a2 commit 4b06c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

+1-1
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)
Please sign in to comment.