Uh oh!
There was an error while loading. Please reload this page.
[release/8.0] Avoid marking property/event attributes multiple times - #92153
Conversation
NativeAot requires a call to GetCustomAttribute for the attributes to be kept.
ghost
commented
Sep 15, 2023
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:
|
carlossanlop
commented
Sep 16, 2023
@vitek-karas can you please review and sign-off this backport too? @jeffschwMSFT can we get your seal of approval? |
jeffschwMSFT
left a comment
There was a problem hiding this comment.
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.