G1: Rename G1BlockOffsetTablePart::alloc_block to update_for_block

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 19
    • Component/s: hotspot
    • gc
    • b09

      `G1BlockOffsetTablePart::alloc_block(blk_start, blk_end)` updates BOT entries for the heap memory range `[blk_start, blk_end)` (already allocated by the caller). However, the method name suggests it "allocates a block at `[blk_start, blk_end)`".

      I suggest to rename it to `update_for_block` to avoid misinterpretation.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: