Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

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 26, 2019
1 parent da36ea2 commit be40f68
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Common/src/CoreLib/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 be40f68

Please sign in to comment.