From c70417bbf7b0cb0db94a37c2cb9381564624ef2c Mon Sep 17 00:00:00 2001 From: Ivan Walulya Date: Mon, 12 Jul 2021 15:05:16 +0200 Subject: [PATCH] hange comment --- src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp b/src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp index 3904a0be6d535..9932ddbd0cc57 100644 --- a/src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp +++ b/src/hotspot/share/gc/g1/g1BlockOffsetTable.inline.hpp @@ -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);