From: Gleb Balykov Date: Tue, 6 Jul 2021 12:32:47 +0000 (+0300) Subject: Update MulticoreJit setup: disable profile gathering if profile already exists X-Git-Tag: submit/tizen/20210722.053902~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb7ba1b7d86a88686ea8c64bda134f26ffee0180;p=platform%2Fcore%2Fdotnet%2Flauncher.git Update MulticoreJit setup: disable profile gathering if profile already exists --- diff --git a/NativeLauncher/launcher/lib/core_runtime.cc b/NativeLauncher/launcher/lib/core_runtime.cc index 64cee32..b0129d9 100644 --- a/NativeLauncher/launcher/lib/core_runtime.cc +++ b/NativeLauncher/launcher/lib/core_runtime.cc @@ -544,6 +544,9 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i setEnvironmentVariable("COMPlus_MultiCoreJitProfile", multiCoreJitProfile); setEnvironmentVariable("COMPlus_MultiCoreJitMinNumCpus", "1"); + if (exist(multiCoreJitProfile)) { + setEnvironmentVariable("COMPlus_MultiCoreJitNoProfileGather", "1"); + } } free(localDataPath); }