Fix eventsource metadata exception (dotnet/coreclr#21993)
authorSung Yoon Whang <suwhang@microsoft.com>
Fri, 25 Jan 2019 21:35:37 +0000 (13:35 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Jan 2019 21:35:37 +0000 (13:35 -0800)
commit3b433889844e80f3987f454e66a1b523d5335349
tree40b51a2ac97dbf527104f7ad57e94059c67d80ed
parent0d7f590e0e042a7398bdcbf4f1a64028526267b4
Fix eventsource metadata exception (dotnet/coreclr#21993)

* Do not throw an exception when we fail to generate metadata for eventsource

* some build failures

* return null directly here

* remove FAILURE_UNSUPPORTED_TYPE

* address PR comments

* address more pr comments

* Fix potential incorrect generation of metadata blob when property metadata generation fails

Commit migrated from https://github.com/dotnet/coreclr/commit/b697678e09b3731a02bedf928dad6c0148f01747
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeMetadataGenerator.cs