From be40f687dde36512c286c5ee0282dc13fd45bb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rivero?= Date: Thu, 25 Apr 2019 15:13:03 -0700 Subject: [PATCH] Removing EventPipe file polling (EventPipeController+Timer) (#24225) * Remove file polling only, and leave the COMPlus_* functionality. * Fix bug/typo introduced with https://github.com/dotnet/coreclr/pull/21718 Signed-off-by: dotnet-bot --- src/Common/src/CoreLib/System/Threading/Timer.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Common/src/CoreLib/System/Threading/Timer.cs b/src/Common/src/CoreLib/System/Threading/Timer.cs index 19bdac6f7ada..0f027778faa3 100644 --- a/src/Common/src/CoreLib/System/Threading/Timer.cs +++ b/src/Common/src/CoreLib/System/Threading/Timer.cs @@ -470,14 +470,8 @@ internal bool Change(uint dueTime, uint period) } else { - if ( -#if CORECLR - // Don't emit this event during EventPipeController. This avoids initializing FrameworkEventSource during start-up which is expensive relative to the rest of start-up. - !EventPipeController.Initializing && -#endif - FrameworkEventSource.Log.IsEnabled(EventLevel.Informational, FrameworkEventSource.Keywords.ThreadTransfer)) + if (FrameworkEventSource.Log.IsEnabled(EventLevel.Informational, FrameworkEventSource.Keywords.ThreadTransfer)) FrameworkEventSource.Log.ThreadTransferSendObj(this, 1, string.Empty, true, (int)dueTime, (int)period); - success = _associatedTimerQueue.UpdateTimer(this, dueTime, period); } }