From 2b3134bc347fc58bfb48269e1f74ce922106697b Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Mon, 10 Dec 2018 22:49:03 -0800 Subject: [PATCH] Fix for SetGCHandle event not getting emitted when running under Standalone GC (dotnet/coreclr#21478) Commit migrated from https://github.com/dotnet/coreclr/commit/d62143d4ae97833081c5f235a91dea95da4461a0 --- src/coreclr/src/gc/handletable.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/coreclr/src/gc/handletable.cpp b/src/coreclr/src/gc/handletable.cpp index 13fb196..b2a0e09 100644 --- a/src/coreclr/src/gc/handletable.cpp +++ b/src/coreclr/src/gc/handletable.cpp @@ -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); -- 2.7.4