diff --git a/src/share/vm/gc_implementation/g1/heapRegionSet.cpp b/src/share/vm/gc_implementation/g1/heapRegionSet.cpp index 9ffb46f83d670285eaf601df5fd4b5ea540bb898..213380e767d1443a37f9804e76bb147c6e247049 100644 --- a/src/share/vm/gc_implementation/g1/heapRegionSet.cpp +++ b/src/share/vm/gc_implementation/g1/heapRegionSet.cpp @@ -231,7 +231,7 @@ void FreeRegionList::remove_starting_at(HeapRegion* first, uint num_regions) { assert(_tail != curr, hrs_ext_msg(this, "invariant")); next->set_prev(prev); } - if (_last = curr) { + if (_last == curr) { _last = NULL; }