HRESULT hr = S_OK;
+ AppDomain *pCurDomain = SystemDomain::GetCurrentDomain();
+
Thread *pThread = GetThread();
if (pThread == NULL)
{
}
}
- if(SystemDomain::GetCurrentDomain()->GetId().m_dwId != DefaultADID)
+ if(pCurDomain->GetId().m_dwId != DefaultADID)
{
return HOST_E_INVALIDOPERATION;
}
Assembly *pAssembly = AssemblySpec::LoadAssembly(pwzAssemblyPath);
+#if defined(FEATURE_MULTICOREJIT)
+ pCurDomain->GetMulticoreJitManager().AutoStartProfile(pCurDomain);
+#endif // defined(FEATURE_MULTICOREJIT)
+
{
GCX_COOP();
{
BaseDomain::LockHolder lh(pDomain);
#ifdef FEATURE_HOSTED_BINDER
- if (!SystemDomain::System()->DefaultDomain()->HasLoadContextHostBinder())
+ if (!pDomain->HasLoadContextHostBinder())
#endif
{
// don't allow redirects