mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8057910: G1: BOT verification should not pass top
Reviewed-by: stefank, tschatzl
This commit is contained in:
parent
ff1498ba6b
commit
c9d4b7a93c
1 changed files with 2 additions and 1 deletions
|
@ -370,8 +370,9 @@ void G1BlockOffsetArray::alloc_block_work2(HeapWord** threshold_, size_t* index_
|
|||
}
|
||||
|
||||
void G1BlockOffsetArray::verify() const {
|
||||
assert(gsp()->bottom() < gsp()->top(), "Only non-empty regions should be verified.");
|
||||
size_t start_card = _array->index_for(gsp()->bottom());
|
||||
size_t end_card = _array->index_for(gsp()->top());
|
||||
size_t end_card = _array->index_for(gsp()->top() - 1);
|
||||
|
||||
for (size_t current_card = start_card; current_card < end_card; current_card++) {
|
||||
u_char entry = _array->offset_array(current_card);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue