[Tizen] Use simple name without suffix in MulticoreJit
authorGleb Balykov <g.balykov@samsung.com>
Mon, 7 Jun 2021 07:52:00 +0000 (10:52 +0300)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
After this change name of resulting profile on disk matches the one passed with COMPlus_MultiCoreJitProfile env variable

src/coreclr/vm/multicorejit.cpp

index a1821ef..c76e14f 100644 (file)
@@ -1027,13 +1027,13 @@ HRESULT MulticoreJitRecorder::StartProfile(const WCHAR * pRoot, const WCHAR * pF
         m_fullFileName.Append(pFile);
 
         // Suffix for AutoStartProfile, used for multiple appdomain
-        if (suffix >= 0)
+        /*if (suffix >= 0)
         {
              m_fullFileName.AppendPrintf(W("_%s_%s_%d.prof"),
                 SystemDomain::System()->DefaultDomain()->GetFriendlyName(),
                 m_pDomain->GetFriendlyName(),
                 suffix);
-        }
+        }*/
 
         NewHolder<MulticoreJitProfilePlayer> player(new (nothrow) MulticoreJitProfilePlayer(
             m_pBinderContext,