Update MulticoreJit setup: disable profile gathering if profile already exists
authorGleb Balykov <g.balykov@samsung.com>
Tue, 6 Jul 2021 12:32:47 +0000 (15:32 +0300)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Tue, 13 Jul 2021 04:59:12 +0000 (13:59 +0900)
NativeLauncher/launcher/lib/core_runtime.cc

index 64cee32bc6a8c9d111e222405838700bd8398b2a..b0129d9e14d6e64a78e01300bf3b705e963b5ded 100644 (file)
@@ -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);
        }