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.
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.
- relates to
-
JDK-8328352 Serial: Inline SerialBlockOffsetSharedArray
- Resolved
-
JDK-8328573 Add ASSERT macro and not use 'CardTable::card_shift_in_words' in 'G1BlockOffsetTable::check_index'
- Closed