8268052: [JVMCI] non-default installed code must be marked as in_use

Reviewed-by: kvn, dnsimon
This commit is contained in:
Tom Rodriguez 2021-06-09 17:34:17 +00:00
parent bb3d226a4e
commit db45ff09ac
9 changed files with 46 additions and 20 deletions

View file

@ -881,11 +881,13 @@ C2V_VMENTRY_0(jint, installCode, (JNIEnv *env, jobject, jobject target, jobject
TraceTime install_time("installCode", JVMCICompiler::codeInstallTimer(!thread->is_Compiler_thread()));
nmethodLocker nmethod_handle;
CodeInstaller installer(JVMCIENV);
JVMCI::CodeInstallResult result = installer.install(compiler,
target_handle,
compiled_code_handle,
cb,
nmethod_handle,
installed_code_handle,
(FailedSpeculation**)(address) failed_speculations_address,
speculations,