Uh oh!
There was an error while loading. Please reload this page.
Enabling RuntimeEventSource in NativeAOT - #85424
Conversation
ghost
commented
Apr 26, 2023
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsFor a CI check
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
df98b45 to
9c204cdCompare…LR exceptioncount fix
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…tion/Assembly.NativeAot.cs Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
| // track count for metrics | ||
| if (isFirstFrame && !isFirstRethrowFrame) | ||
| Interlocked.Increment(ref s_exceptionCount); |
There was a problem hiding this comment.
I'm going to assume this matches how CoreCLR counts these wrt rethrow or ExceptionDispatchInfo.Throw.
RuntimeEventSourcewasn't enabled in NativeAOT due to not being initialized whenEventSourceEnabledis set, missing metadata on critical payload types blocking reflection of these inEventSource.Added a module initializer to Initialize
RuntimeEventSourceifEventSourceEnabledis set, made the required types visible to reflection, and also enabled some missing counters inNativeAOT.