RFR: 8362493: Cleanup CodeBuffer::copy_relocations_to

Hamlin Li mli at openjdk.org
Thu Jul 17 11:14:00 UTC 2025


Hi,
Can you help to review this simple patch?

`CodeBuffer::copy_relocations_to(address buf, csize_t buf_limit, bool only_inst)` is only used in `copy_relocations_to(CodeBlob* dest)` which passes false to only_inst, so the former one should be able to be simplified.

Thank you!

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

Commit messages:
 - initial commit

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

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


More information about the hotspot-compiler-dev mailing list