Skip to content

Add trim and NativeAOT safety attributes#1471

Merged
AArnott merged 3 commits into
mainfrom
dev/andarno/nativeAOT
Jun 20, 2025
Merged

Add trim and NativeAOT safety attributes#1471
AArnott merged 3 commits into
mainfrom
dev/andarno/nativeAOT

Conversation

@AArnott

@AArnott AArnott commented Jun 19, 2025

Copy link
Copy Markdown
Member

This gets vs-threading to self-identify as a NativeAOT-ready assembly, and adds the attributes on the specific methods that are not safe. Incidentally, all the trim-unsafe methods are strictly for runtime diagnostics rather than critical functionality.

@AArnott AArnott requested review from agocke, eerhardt and lifengl June 19, 2025 21:51
Comment thread src/Microsoft.VisualStudio.Threading/ThreadingEventSource.cs
@AArnott AArnott force-pushed the dev/andarno/nativeAOT branch from 9e8ac72 to cc30086 Compare June 19, 2025 22:09
@AArnott AArnott linked an issue Jun 19, 2025 that may be closed by this pull request
@AArnott AArnott force-pushed the dev/andarno/nativeAOT branch from cc30086 to df9d517 Compare June 19, 2025 22:30

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Just one comment left.

AArnott added 3 commits June 19, 2025 17:46
This gets vs-threading to self-identify as a NativeAOT-ready assembly, and adds the attributes on the specific methods that are *not* safe.
Incidentally, all the trim-unsafe methods are strictly for runtime diagnostics rather than critical functionality.
@AArnott AArnott force-pushed the dev/andarno/nativeAOT branch from 0261f2d to 5cb439e Compare June 19, 2025 23:46
@AArnott AArnott enabled auto-merge June 20, 2025 00:04
@AArnott AArnott merged commit 4928e41 into main Jun 20, 2025
6 checks passed
@AArnott AArnott deleted the dev/andarno/nativeAOT branch June 20, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NativeAOT readiness

3 participants