Fix CoreRT build breaks
authorJan Kotas <jkotas@microsoft.com>
Tue, 22 Jan 2019 05:02:55 +0000 (21:02 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 22 Jan 2019 12:15:31 +0000 (04:15 -0800)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/61ff7397e849273bafc8b1e46ec88ddd905ce187

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/ActivityTracker.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEtwProvider.cs

index fde2852..7ef4523 100644 (file)
@@ -606,7 +606,7 @@ namespace System.Diagnostics.Tracing
         #endregion
     }
 
-#if ES_BUILD_STANDALONE || ES_BUILD_PN
+#if ES_BUILD_STANDALONE
     /******************************** SUPPORT *****************************/
     /// <summary>
     /// This is supplied by the framework.   It is has the semantics that the value is copied to any new Tasks that is created
@@ -615,11 +615,7 @@ namespace System.Diagnostics.Tracing
     /// only get your thread local copy which means that you never have races.  
     /// </summary>
     /// 
-#if ES_BUILD_STANDALONE
     [EventSource(Name = "Microsoft.Tasks.Nuget")]
-#else
-    [EventSource(Name = "System.Diagnostics.Tracing.TplEtwProvider")]
-#endif
     internal class TplEtwProvider : EventSource
     {
         public class Keywords
index 311445e..3e2d42b 100644 (file)
@@ -469,7 +469,7 @@ namespace System.Threading.Tasks
         public void TraceOperationRelation(int TaskID, CausalityRelation Relation)
         {
             if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation))
-                WriteEvent(TRACEOPERATIONRELATION_ID, TaskID, (int)Relation);                // optmized overload for this exists
+                WriteEvent(TRACEOPERATIONRELATION_ID, TaskID, (int)Relation);                // optimized overload for this exists
         }
 
         [Event(TRACEOPERATIONSTOP_ID, Version = 1,
@@ -477,7 +477,7 @@ namespace System.Threading.Tasks
         public void TraceOperationEnd(int TaskID, AsyncCausalityStatus Status)
         {
             if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation))
-                WriteEvent(TRACEOPERATIONSTOP_ID, TaskID, (int)Status);                     // optmized overload for this exists
+                WriteEvent(TRACEOPERATIONSTOP_ID, TaskID, (int)Status);                     // optimized overload for this exists
         }
 
         [Event(TRACESYNCHRONOUSWORKSTART_ID, Version = 1,
@@ -485,7 +485,7 @@ namespace System.Threading.Tasks
         public void TraceSynchronousWorkBegin(int TaskID, CausalitySynchronousWork Work)
         {
             if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
-                WriteEvent(TRACESYNCHRONOUSWORKSTART_ID, TaskID, (int)Work);               // optmized overload for this exists
+                WriteEvent(TRACESYNCHRONOUSWORKSTART_ID, TaskID, (int)Work);               // optimized overload for this exists
         }
 
         [Event(TRACESYNCHRONOUSWORKSTOP_ID, Version = 1,
@@ -573,7 +573,7 @@ namespace System.Threading.Tasks
             // The thread pool generated a process wide unique GUID from a task GUID by
             // using the taskGuid, the appdomain ID, and 8 bytes of 'randomization' chosen by
             // using the last 8 bytes  as the provider GUID for this provider.  
-            // These were generated by CreateGuid, and are reasonably random (and thus unlikley to collide
+            // These were generated by CreateGuid, and are reasonably random (and thus unlikely to collide
             uint pid = EventSource.s_currentPid;
             return new Guid(taskID,
                             (short)DefaultAppDomainID, (short)(DefaultAppDomainID >> 16),