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

Unify the signatures of the methods address_for_index() and index_for() in BOT implementations

XMLWordPrintable

    • gc
    • b16

      Currently, the ParallelGC has the methods `ObjectStartArray::addr_for_entry` and `ObjectStartArray::entry_for_addr`.
      SerialGC has the methods `SerialBlockOffsetSharedArray::address_for_index` and `SerialBlockOffsetSharedArray::index_for`.
      G1GC has the methods `G1BlockOffsetTable::address_for_index` and `G1BlockOffsetTable::index_for`.

      These methods have similar feature, so it is good to unify their signatures and method names.
      By using the signatures of the methods `addr_for_entry` and `entry_for_addr`, the method `CardTable::card_shift_in_words` can be removed, so it is better to change the Serial and G1.

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: