From: Sung Yoon Whang Date: Tue, 11 Dec 2018 06:49:03 +0000 (-0800) Subject: Fix for SetGCHandle event not getting emitted when running under Standalone GC (dotne... X-Git-Tag: submit/tizen/20210909.063632~11030^2~3094 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b3134bc347fc58bfb48269e1f74ce922106697b;p=platform%2Fupstream%2Fdotnet%2Fruntime.git 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 --- 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);