Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Removing EventPipe file polling (EventPipeController+Timer) (#24225)
Browse files Browse the repository at this point in the history
* Remove file polling only, and leave the COMPlus_* functionality.
* Fix bug/typo introduced with dotnet/coreclr#21718

Signed-off-by: dotnet-bot <[email protected]>
  • Loading branch information
jorive authored and jkotas committed Apr 25, 2019
1 parent bf9a1c9 commit cfd74c8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/System.Private.CoreLib/shared/System/Threading/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit cfd74c8

Please sign in to comment.