diff options
author | Sung Yoon Whang <suwhang@microsoft.com> | 2018-01-04 17:54:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 17:54:29 -0800 |
commit | 9f5da3a5e53529880907efd6c30d0abdeba0ba29 (patch) | |
tree | f01772b59709c79c49920a78a58b3815f5b72627 /src/vm/corhost.cpp | |
parent | b5a755ef274fa182cd17317208be4cb4dc3896de (diff) | |
download | coreclr-9f5da3a5e53529880907efd6c30d0abdeba0ba29.tar.gz coreclr-9f5da3a5e53529880907efd6c30d0abdeba0ba29.tar.bz2 coreclr-9f5da3a5e53529880907efd6c30d0abdeba0ba29.zip |
Remove duplicate callback to AppDomainCreationFinished in profiler (#15691)
Diffstat (limited to 'src/vm/corhost.cpp')
-rw-r--r-- | src/vm/corhost.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/vm/corhost.cpp b/src/vm/corhost.cpp index 8ba96007cb..5b31c8aad5 100644 --- a/src/vm/corhost.cpp +++ b/src/vm/corhost.cpp @@ -650,10 +650,6 @@ HRESULT CorHost2::_CreateAppDomain( if (dwFlags & APPDOMAIN_FORCE_TRIVIAL_WAIT_OPERATIONS) pDomain->SetForceTrivialWaitOperations(); - -#ifdef PROFILING_SUPPORTED - EX_TRY -#endif { GCX_COOP(); @@ -710,28 +706,6 @@ HRESULT CorHost2::_CreateAppDomain( m_fAppDomainCreated = TRUE; } -#ifdef PROFILING_SUPPORTED - EX_HOOK - { - // Need the first assembly loaded in to get any data on an app domain. - { - BEGIN_PIN_PROFILER(CORProfilerTrackAppDomainLoads()); - GCX_PREEMP(); - g_profControlBlock.pProfInterface->AppDomainCreationFinished((AppDomainID)(AppDomain*) pDomain, GET_EXCEPTION()->GetHR()); - END_PIN_PROFILER(); - } - } - EX_END_HOOK; - - // Need the first assembly loaded in to get any data on an app domain. - { - BEGIN_PIN_PROFILER(CORProfilerTrackAppDomainLoads()); - GCX_PREEMP(); - g_profControlBlock.pProfInterface->AppDomainCreationFinished((AppDomainID)(AppDomain*) pDomain, S_OK); - END_PIN_PROFILER(); - } -#endif // PROFILING_SUPPORTED - // DoneCreating releases ownership of AppDomain. After this call, there should be no access to pDomain. pDomain.DoneCreating(); |