Remove superflous CheckReleased call which will slow down Event Log Reading up to...
authorAlois-xx <akraus1@gmx.de>
Thu, 7 May 2020 16:31:56 +0000 (18:31 +0200)
committerGitHub <noreply@github.com>
Thu, 7 May 2020 16:31:56 +0000 (09:31 -0700)
Co-authored-by: Alois Kraus <alois.kraus@siemens-healthineers.com>
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/ProviderMetadataCachedInformation.cs

index 8e49408..9b02652 100644 (file)
@@ -156,7 +156,6 @@ namespace System.Diagnostics.Eventing.Reader
 
                 try
                 {
-                    pm.CheckReleased();
                     UpdateCacheValueInfoForHit(cacheItem);
                 }
                 catch (EventLogException)