RFR: 8316694: Implement relocation of nmethod within CodeCache [v6]
Vladimir Kozlov
kvn at openjdk.org
Tue Mar 18 20:02:12 UTC 2025
On Tue, 18 Mar 2025 15:37:00 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:
> How the second change (oops) is addressed when we create a new nmethod
Called from `nmethod()` constructor [nmethod::copy_values()](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/code/nmethod.cpp#L1741) replaces handles used during compilation with oops.
Note, `new_nmethod()` holds `CodeCache_lock` and `ciEnv::register_method()` holds `Compile_lock` (and `MethodCompileQueue_lock`).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r2001891108
More information about the hotspot-compiler-dev
mailing list