8258715: [JVMCI] separate JVMCI code install timers for CompileBroker and hosted compilations

Reviewed-by: kvn
This commit is contained in:
Doug Simon 2020-12-19 11:17:16 +00:00
parent 64644a1072
commit c50b464a12
4 changed files with 33 additions and 22 deletions

View file

@ -838,7 +838,7 @@ C2V_VMENTRY_0(jint, installCode, (JNIEnv *env, jobject, jobject target, jobject
JVMCICompiler* compiler = JVMCICompiler::instance(true, CHECK_JNI_ERR);
TraceTime install_time("installCode", JVMCICompiler::codeInstallTimer());
TraceTime install_time("installCode", JVMCICompiler::codeInstallTimer(!thread->is_Compiler_thread()));
bool is_immutable_PIC = JVMCIENV->get_HotSpotCompiledCode_isImmutablePIC(compiled_code_handle) > 0;
CodeInstaller installer(JVMCIENV, is_immutable_PIC);