Fix for SetGCHandle event not getting emitted when running under Standalone GC (dotne...
authorSung Yoon Whang <suwhang@microsoft.com>
Tue, 11 Dec 2018 06:49:03 +0000 (22:49 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Dec 2018 06:49:03 +0000 (22:49 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/d62143d4ae97833081c5f235a91dea95da4461a0

src/coreclr/src/gc/handletable.cpp

index 13fb196..b2a0e09 100644 (file)
@@ -594,8 +594,7 @@ void HndLogSetEvent(OBJECTHANDLE handle, _UNCHECKED_OBJECTREF value)
     STATIC_CONTRACT_MODE_COOPERATIVE;
 
 #if !defined(DACCESS_COMPILE) && defined(FEATURE_EVENT_TRACE)
-    if (ETW_EVENT_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PRIVATE_PROVIDER_Context, SetGCHandle) ||
-        ETW_EVENT_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_Context, SetGCHandle))
+    if (EVENT_ENABLED(SetGCHandle) || EVENT_ENABLED(PrvSetGCHandle))
     {
         uint32_t hndType = HandleFetchType(handle);
         ADIndex appDomainIndex = HndGetHandleADIndex(handle);