RFR: 8316694: Implement relocation of nmethod within CodeCache [v40]
Chad Rakoczy
duke at openjdk.org
Thu Jul 24 19:05:11 UTC 2025
On Thu, 13 Mar 2025 13:54:43 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:
>> src/hotspot/share/code/nmethod.cpp line 1396:
>>
>>> 1394: }
>>> 1395:
>>> 1396: nmethod::nmethod(nmethod& nm) : CodeBlob(nm.name(), CodeBlobKind::Nmethod, nm.size(), nm.header_size())
>>
>> Should this be `clone()` method instead of constructor. Then you will not need `new()`.
>
> +1
Decided not to use `memcpy` for the time being https://github.com/openjdk/jdk/pull/23573#discussion_r2220591570
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r2229331986
More information about the hotspot-compiler-dev
mailing list