RFR: 8330362: G1: Inline offset array element accessor in G1BlockOffsetTable

Guoxiong Li gli at openjdk.org
Mon Apr 22 10:01:47 UTC 2024


Hi all,

This patch inlines the method `G1BlockOffsetTable::set_offset_array_raw`. I think the method `G1BlockOffsetTable::offset_array` is a `getter` corresponding to the `setter` `G1BlockOffsetTable::set_offset_array` and the check in `G1BlockOffsetTable::offset_array` is useful, so it seems good to keep it.

Thanks for taking the time to review.

Best Regards,
-- Guoxiong

-------------

Commit messages:
 - JDK-8330362

Changes: https://git.openjdk.org/jdk/pull/18881/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18881&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8330362
  Stats: 7 lines in 2 files changed: 0 ins; 6 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/18881.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18881/head:pull/18881

PR: https://git.openjdk.org/jdk/pull/18881


More information about the hotspot-gc-dev mailing list