Skip to content

C# 11: CIL attributes #11907

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

Merged
merged 3 commits into from
Jan 18, 2023
Merged

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Jan 17, 2023

@tamasvajk and I had a longer debugging session where @tamasvajk discovered that the implementation of CIL extraction for method attributes are incorrect. The lazy evaluation of yield return causes the the Contents for the cil attributes never to be evaluated and thus never included in the TRAP.
This is fixed in this PR.

As a part of this PR the CIL attributes test also needed to be updated to exclude attributes for System.Diagnostics.Tracing.EventSource.<WriteEventString> as the unit test execution produced slightly different results on MacOS and Linux (related to method naming).

@github-actions github-actions bot added the C# label Jan 17, 2023
@michaelnebel michaelnebel force-pushed the csharp/cil/attributes branch from a11a912 to de3b0ee Compare January 17, 2023 13:18
@michaelnebel michaelnebel force-pushed the csharp/cil/attributes branch from de3b0ee to 6253350 Compare January 17, 2023 16:01
@michaelnebel
Copy link
Contributor Author

michaelnebel commented Jan 18, 2023

DCA looks good (except for the one failing projects, which is most likely spurious). I will run DCA again for that single project.

@michaelnebel michaelnebel marked this pull request as ready for review January 18, 2023 07:12
@michaelnebel michaelnebel requested a review from a team as a code owner January 18, 2023 07:12
@michaelnebel
Copy link
Contributor Author

Follow up DCA also looks good!

@michaelnebel michaelnebel merged commit 3a4623b into github:main Jan 18, 2023
@michaelnebel michaelnebel deleted the csharp/cil/attributes branch January 18, 2023 09:46
@michaelnebel michaelnebel changed the title C#: CIL attributes C#11: CIL attributes Jan 26, 2023
@michaelnebel michaelnebel changed the title C#11: CIL attributes C# 11: CIL attributes Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants