Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NativeRuntimeEventSource metadata to NativeAot CoreLib #106641

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Aug 19, 2024

This is necessary to allow consumers to parse the payload.

Delete unnecessary runtimeflavor argument of genRuntimeEventSources.py script.

Fixes #105556

This is necessary to allow consumers to parse the payload.

Delete unnecessary runtimeflavor argument of genRuntimeEventSources.py script.

Fixes dotnet#105556
# Get the list of event nodes.
eventNodes = eventsNode.getElementsByTagName("event")

# Build the list of used keywords
Copy link
Member Author

@jkotas jkotas Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will omit OverrideAndSuppressNGenEvents, StartEnumerationKeyword and EndEnumerationKeyword keywords in CoreCLR version as well since they are unused. I assume that it is fine to omit unused keywords from metadata.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fine to omit, we just need the metadata to parse events so if they are never emitted than we don't need them

@@ -297,11 +297,6 @@
<ProjectReference Include="$(LibrariesProjectRoot)\System.Private.CoreLib\gen\System.Private.CoreLib.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have any .tt files in CoreLib anymore

@jkotas
Copy link
Member Author

jkotas commented Aug 19, 2024

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas jkotas merged commit 094649e into dotnet:main Aug 20, 2024
164 of 169 checks passed
@jkotas jkotas deleted the issue-105556 branch August 20, 2024 15:52
@jkotas
Copy link
Member Author

jkotas commented Aug 20, 2024

/backport to release/9.0

Copy link
Contributor

Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/10475918830

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EventListenerThreadPool test failing in nativeaot outerloop runs
2 participants