Skip to content

Commit

Permalink
hange comment
Browse files Browse the repository at this point in the history
  • Loading branch information
walulyai committed Jul 12, 2021
1 parent 5539474 commit c70417b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp
Expand Up @@ -116,7 +116,7 @@ inline HeapWord* G1BlockOffsetTablePart::block_at_or_preceding(const void* addr)
(uint) _bot->offset_array(_bot->index_for(_hr->bottom())));
size_t index = _bot->index_for(addr);
// We must make sure that the offset table entry we use is valid. If
// "addr" is past the end, start at the last known one and go forward.
// "addr" is past the end, start at the last valid index.
index = MIN2(index, _next_offset_index - 1);

HeapWord* q = _bot->address_for_index(index);
Expand Down

0 comments on commit c70417b

Please sign in to comment.