Skip to content

Commit

Permalink
Fix NAOT runtime build without FEATURE_EVENT_TRACE (#106157)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion authored Aug 15, 2024
1 parent 3c7cc92 commit bfffd58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/gc/env/etmdummy.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,4 @@
#define FireEtwEventSource(eventID, eventName, eventSourceName, payload) 0
#define FireEtwWaitHandleWaitStart(WaitSource, AssociatedObjectID, ClrInstanceID) 0
#define FireEtwWaitHandleWaitStop(ClrInstanceID) 0
#define FireEtwYieldProcessorMeasurement(ClrInstanceID, NsPerYield, EstablishedNsPerYield) 0
2 changes: 2 additions & 0 deletions src/coreclr/vm/yieldprocessornormalizedshared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ void YieldProcessorNormalization::FireMeasurementEvents()
}
CONTRACTL_END;

#ifdef FEATURE_EVENT_TRACE
if (!EventEnabledYieldProcessorMeasurement())
{
return;
Expand All @@ -304,6 +305,7 @@ void YieldProcessorNormalization::FireMeasurementEvents()
nextIndex = 0;
}
}
#endif // FEATURE_EVENT_TRACE
}

double YieldProcessorNormalization::AtomicLoad(double *valueRef)
Expand Down

0 comments on commit bfffd58

Please sign in to comment.