Clear Canary cache unconditionally
authorAndrew Au <andrewau@microsoft.com>
Thu, 21 Jun 2018 17:52:13 +0000 (10:52 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/68b91a76475519cfc48b60c41ce28e5c737188d4

src/coreclr/src/debug/ee/debugger.cpp

index 941c77d..e657070 100644 (file)
@@ -10832,8 +10832,6 @@ bool Debugger::HandleIPCEvent(DebuggerIPCEvent * pEvent)
             }
             else
             {
-                GetCanary()->ClearCache();
-
                 fContinue = ResumeThreads(pEvent->vmAppDomain.GetRawPtr());
 
                 //
@@ -10842,6 +10840,7 @@ bool Debugger::HandleIPCEvent(DebuggerIPCEvent * pEvent)
                 //
                 ThreadSuspend::UnlockThreadStore(FALSE, ThreadSuspend::SUSPEND_FOR_DEBUGGER);
             }
+            GetCanary()->ClearCache();
             break;
         }