-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[release/8.0] Avoid marking property/event attributes multiple times #92153
Conversation
NativeAot requires a call to GetCustomAttribute for the attributes to be kept.
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr, @marek-safar Issue DetailsBackport of #92094 to release/8.0 /cc @sbomer Customer ImpactTestingRiskIMPORTANT: If this backport is for a servicing release, please verify that:
|
@vitek-karas can you please review and sign-off this backport too? @jeffschwMSFT can we get your seal of approval? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. this can be merged when ready
Backport of #92094 to release/8.0
/cc @sbomer
Customer Impact
Specific patterns of attribute usages on properties or events could result in ILLink crashing (with stack overflow). This was reported by a customer publishing a MAUI iOS app in #92064.
As a side effect, this also fixes a (less impactful) bug where duplicate warnings were being produced: #83581.
Testing
Added test coverage for the pattern that causes recursion, for properties (the reported issue) and events (which can also exhibit the same problem).
Risk
Low risk. The change adds some extra tracking for properties and events, but this approach has been proven because we do something similar for methods/fields and other metadata entities.