diff -r 5cc611ec85b3 -r 0782a966d781 hotspot/src/share/vm/gc/g1/heapRegionSet.cpp --- a/hotspot/src/share/vm/gc/g1/heapRegionSet.cpp Mon Nov 02 19:38:49 2015 +0000 +++ b/hotspot/src/share/vm/gc/g1/heapRegionSet.cpp Mon Nov 02 10:41:39 2015 +0100 @@ -230,7 +230,7 @@ assert(_tail != curr, "%s", hrs_ext_msg(this, "invariant").buffer()); next->set_prev(prev); } - if (_last = curr) { + if (_last == curr) { _last = NULL; }