RFR: 8362493: Cleanup CodeBuffer::copy_relocations_to

Vladimir Kozlov kvn at openjdk.org
Thu Jul 17 13:18:49 UTC 2025


On Thu, 17 Jul 2025 11:09:09 GMT, Hamlin Li <mli at openjdk.org> wrote:

> 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!

Good. It is left over from JEP 243: Java-Level JVM Compiler Interface.

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26366#pullrequestreview-3029502102


More information about the hotspot-compiler-dev mailing list