Skip to content

Commit

Permalink
Remove custom marking of nested types for event sources (dotnet#2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar authored May 18, 2021
1 parent a621b9a commit 2cf3082
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
2 changes: 1 addition & 1 deletion src/linker/Linker.Steps/MarkStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ protected internal virtual TypeDefinition MarkType (TypeReference reference, Dep
MarkSerializable (type);

// This marks static fields of KeyWords/OpCodes/Tasks subclasses of an EventSource type.
if (BCL.EventTracingForWindows.IsEventSourceImplementation (type, _context)) {
if (_context.GetTargetRuntimeVersion () < TargetRuntimeVersion.NET6 && BCL.EventTracingForWindows.IsEventSourceImplementation (type, _context)) {
MarkEventSourceProviders (type);
}

Expand Down
49 changes: 0 additions & 49 deletions test/Mono.Linker.Tests.Cases/BCLFeatures/ETW/CustomEventSource.cs

This file was deleted.

0 comments on commit 2cf3082

Please sign in to comment.