Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Process/send etw rundown events only during graceful shutdown and not during process detach (a form of abrupt shutdown) #27238

Merged
merged 1 commit into from
Oct 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/vm/ceemain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,18 +1321,15 @@ void STDMETHODCALLTYPE EEShutDownHelper(BOOL fIsDllUnloading)
// Used later for a callback.
CEEInfo ceeInf;

if (fIsDllUnloading)
if (!fIsDllUnloading)
{
ETW::EnumerationLog::ProcessShutdown();
}

#ifdef FEATURE_PERFTRACING
if (!fIsDllUnloading)
{
EventPipe::Shutdown();
DiagnosticServer::Shutdown();
}
#endif // FEATURE_PERFTRACING
}

#if defined(FEATURE_COMINTEROP)
// Get the current thread.
Expand Down