Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/heapRegionSet.cpp @ 6252:d42fe3c3001d
7184772: G1: Incorrect assert in HeapRegionLinkedList::add_as_head()
Summary: Assertion incorrectly checks that _head is NULL and should be checking that _tail is NULL instead.
Reviewed-by: johnc
Contributed-by: Brandon Mitchell <brandon@twitter.com>
author | johnc |
---|---|
date | Tue, 17 Jul 2012 14:57:02 -0700 |
parents | 720b6a76dd9d |
children | a2f7274eb6ef |
comparison
equal
deleted
inserted
replaced
6251:594dff5e3c2e | 6252:d42fe3c3001d |
---|---|
290 | 290 |
291 if (_head != NULL) { | 291 if (_head != NULL) { |
292 assert(length() > 0 && _tail != NULL, hrs_ext_msg(this, "invariant")); | 292 assert(length() > 0 && _tail != NULL, hrs_ext_msg(this, "invariant")); |
293 from_list->_tail->set_next(_head); | 293 from_list->_tail->set_next(_head); |
294 } else { | 294 } else { |
295 assert(length() == 0 && _head == NULL, hrs_ext_msg(this, "invariant")); | 295 assert(length() == 0 && _tail == NULL, hrs_ext_msg(this, "invariant")); |
296 _tail = from_list->_tail; | 296 _tail = from_list->_tail; |
297 } | 297 } |
298 _head = from_list->_head; | 298 _head = from_list->_head; |
299 | 299 |
300 _length += from_list->length(); | 300 _length += from_list->length(); |