Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 61ff739

Browse files
committed
Fix CoreRT build breaks
Signed-off-by: dotnet-bot <[email protected]>
1 parent 5c9febf commit 61ff739

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/ActivityTracker.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ void ActivityChanging(AsyncLocalValueChangedArgs<ActivityInfo> args)
606606
#endregion
607607
}
608608

609-
#if ES_BUILD_STANDALONE || ES_BUILD_PN
609+
#if ES_BUILD_STANDALONE
610610
/******************************** SUPPORT *****************************/
611611
/// <summary>
612612
/// 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 @@ void ActivityChanging(AsyncLocalValueChangedArgs<ActivityInfo> args)
615615
/// only get your thread local copy which means that you never have races.
616616
/// </summary>
617617
///
618-
#if ES_BUILD_STANDALONE
619618
[EventSource(Name = "Microsoft.Tasks.Nuget")]
620-
#else
621-
[EventSource(Name = "System.Diagnostics.Tracing.TplEtwProvider")]
622-
#endif
623619
internal class TplEtwProvider : EventSource
624620
{
625621
public class Keywords

src/System.Private.CoreLib/shared/System/Threading/Tasks/TplEtwProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,23 +469,23 @@ public void TraceOperationBegin(int TaskID, string OperationName, long RelatedCo
469469
public void TraceOperationRelation(int TaskID, CausalityRelation Relation)
470470
{
471471
if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation))
472-
WriteEvent(TRACEOPERATIONRELATION_ID, TaskID, (int)Relation); // optmized overload for this exists
472+
WriteEvent(TRACEOPERATIONRELATION_ID, TaskID, (int)Relation); // optimized overload for this exists
473473
}
474474

475475
[Event(TRACEOPERATIONSTOP_ID, Version = 1,
476476
Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalityOperation)]
477477
public void TraceOperationEnd(int TaskID, AsyncCausalityStatus Status)
478478
{
479479
if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation))
480-
WriteEvent(TRACEOPERATIONSTOP_ID, TaskID, (int)Status); // optmized overload for this exists
480+
WriteEvent(TRACEOPERATIONSTOP_ID, TaskID, (int)Status); // optimized overload for this exists
481481
}
482482

483483
[Event(TRACESYNCHRONOUSWORKSTART_ID, Version = 1,
484484
Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalitySynchronousWork)]
485485
public void TraceSynchronousWorkBegin(int TaskID, CausalitySynchronousWork Work)
486486
{
487487
if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
488-
WriteEvent(TRACESYNCHRONOUSWORKSTART_ID, TaskID, (int)Work); // optmized overload for this exists
488+
WriteEvent(TRACESYNCHRONOUSWORKSTART_ID, TaskID, (int)Work); // optimized overload for this exists
489489
}
490490

491491
[Event(TRACESYNCHRONOUSWORKSTOP_ID, Version = 1,
@@ -573,7 +573,7 @@ internal static Guid CreateGuidForTaskID(int taskID)
573573
// The thread pool generated a process wide unique GUID from a task GUID by
574574
// using the taskGuid, the appdomain ID, and 8 bytes of 'randomization' chosen by
575575
// using the last 8 bytes as the provider GUID for this provider.
576-
// These were generated by CreateGuid, and are reasonably random (and thus unlikley to collide
576+
// These were generated by CreateGuid, and are reasonably random (and thus unlikely to collide
577577
uint pid = EventSource.s_currentPid;
578578
return new Guid(taskID,
579579
(short)DefaultAppDomainID, (short)(DefaultAppDomainID >> 16),

0 commit comments

Comments
 (0)