Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8281120

G1: Rename G1BlockOffsetTablePart::alloc_block to update_for_block

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • 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.

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

              Created:
              Updated:
              Resolved: