mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
7184772: G1: Incorrect assert in HeapRegionLinkedList::add_as_head()
Assertion incorrectly checks that _head is NULL and should be checking that _tail is NULL instead. Reviewed-by: johnc
This commit is contained in:
parent
7e2522f283
commit
6fdfe86bbd
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ void HeapRegionLinkedList::add_as_head(HeapRegionLinkedList* from_list) {
|
|||
assert(length() > 0 && _tail != NULL, hrs_ext_msg(this, "invariant"));
|
||||
from_list->_tail->set_next(_head);
|
||||
} else {
|
||||
assert(length() == 0 && _head == NULL, hrs_ext_msg(this, "invariant"));
|
||||
assert(length() == 0 && _tail == NULL, hrs_ext_msg(this, "invariant"));
|
||||
_tail = from_list->_tail;
|
||||
}
|
||||
_head = from_list->_head;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue