Fix Diagnostics.Tracing ILLinkTrim entries (#38125)
authorEric Erhardt <eric.erhardt@microsoft.com>
Fri, 19 Jun 2020 14:52:36 +0000 (09:52 -0500)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 14:52:36 +0000 (09:52 -0500)
commit391dbfa87d8aba2a5bf338b433830de5f5c1cb3b
tree0ee504230d347860f83655cdeb5ef3225a60a0bf
parentfae477f34b2185135f543af14d828fcd6789fee3
Fix Diagnostics.Tracing ILLinkTrim entries (#38125)

* Fix Diagnostics.Tracing ILLinkTrim entries

- PropertyValue/ReferenceTypeHelper's pattern is recognized by the ILLinker. Protected it with a new trimming test.
- RuntimeEventSource doesn't need to be rooted. This class is used by IL and doesn't get trimmed.
- EventPipe* and NativeRuntimeEventSource only need to be rooted in CoreCLR, since they aren't used in Mono. So they are moved to just CoreCLR's ILLinkTrim file.

Contributes to #35199
src/coreclr/src/System.Private.CoreLib/ILLinkTrim.xml
src/libraries/System.Diagnostics.Tracing/tests/TrimmingTests/EventSourcePropertyValueTest.cs [new file with mode: 0644]
src/libraries/System.Diagnostics.Tracing/tests/TrimmingTests/System.Diagnostics.Tracing.TrimmingTests.proj [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml