Skip to content

Commit

Permalink
Fix profiler sync issue (dotnet#47214)
Browse files Browse the repository at this point in the history
  • Loading branch information
davmason authored Jan 20, 2021
1 parent 6a58b9c commit 82bbb01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/profiler/native/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ class ShutdownGuard
// ELT hooks will continue to be called. We would AV if we tried to call
// in to freed resources.
#define SHUTDOWNGUARD() \
ShutdownGuard(); \
ShutdownGuard shutdownGuard; \
if (ShutdownGuard::HasShutdownStarted()) \
{ \
return S_OK; \
}

#define SHUTDOWNGUARD_RETVOID() \
ShutdownGuard(); \
ShutdownGuard shutdownGuard; \
if (ShutdownGuard::HasShutdownStarted()) \
{ \
return; \
Expand Down

0 comments on commit 82bbb01

Please sign in to comment.