-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Implementation for UnsafeAccessorTypeAttribute
#114881
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
AaronRobinsonMSFT
merged 68 commits into
dotnet:main
from
AaronRobinsonMSFT:unsafeaccessortype_impl
May 13, 2025
+1,924
−136
Merged
Changes from 14 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
1b0d06e
Add support for UnsafeAccessorTypeAttribute
AaronRobinsonMSFT e1f1d6d
Add lookup from private assembly.
AaronRobinsonMSFT a933432
Address the collectible assembly issue.
AaronRobinsonMSFT 3848101
Testing.
AaronRobinsonMSFT 925e862
Offline feedback.
AaronRobinsonMSFT 840a54b
Update comment.
AaronRobinsonMSFT d352abd
Add mono runtime support
AaronRobinsonMSFT 6476d43
Mono
AaronRobinsonMSFT 728c336
Remove unused local.
AaronRobinsonMSFT 6e316b6
Add NativeAOT support
jkoritzinsky b87d916
Merge branch 'unsafeaccessortype_impl' of https://github.com/AaronRob…
jkoritzinsky 3a84360
Add linker support
jkoritzinsky e824981
Copy custom modifiers should work on N.
AaronRobinsonMSFT c6df90b
Add ref return test.
AaronRobinsonMSFT 63bfc45
Additional tests.
AaronRobinsonMSFT 23bb9b8
Remove calling convention mask.
AaronRobinsonMSFT 4b5a47d
Fix windows build break.
AaronRobinsonMSFT 29c5ef8
Merge branch 'unsafeaccessortype_impl' of https://github.com/AaronRob…
jkoritzinsky c543349
Make SigPointer's Copy functions consistent.
AaronRobinsonMSFT 5774895
Remove duplicate throw helper.
AaronRobinsonMSFT aab24c9
[CoreCLR] Generic support for UnsafeAccessorType
AaronRobinsonMSFT 51f3651
Add tests.
AaronRobinsonMSFT d71b5fd
Fix generics support in NativeAOT
jkoritzinsky a3b8e89
Use canonical vs typical methodtable.
AaronRobinsonMSFT d0de954
Update format to respect IL syntax for generics ("!N" and "!!N").
AaronRobinsonMSFT e5d3794
Fix build breaks.
AaronRobinsonMSFT 7097c73
Fix build break on linux
AaronRobinsonMSFT db756dc
Enable bound generics with private types.
AaronRobinsonMSFT 081e4be
Merge remote-tracking branch 'upstream/main' into unsafeaccessortype_…
AaronRobinsonMSFT 2729f35
Support unbound generics in NAOT.
jkoritzinsky 6a6e616
Fix crossgen usage of updated API
jkoritzinsky d2dd033
Restructure to avoid having to deal with .NET Standard-targeting ILVe…
jkoritzinsky baab3ea
Handle byrefs and pointers as type name.
AaronRobinsonMSFT fca0b95
Require UnsafeAccessorType to define full signature as a string.
AaronRobinsonMSFT 5388fc8
Style/nits and added tests
AaronRobinsonMSFT 1008e98
Adjust ref handling in NAOT and add type check for values (skipping r…
jkoritzinsky 3f8f22b
Implement byref type validation with a local for NAOT
jkoritzinsky 02ae9f3
Address type safety issue by passing
AaronRobinsonMSFT 9b1193e
Use typed enum.
AaronRobinsonMSFT 0da4049
Const and nits
AaronRobinsonMSFT dc97df8
Merge remote-tracking branch 'upstream/main' into unsafeaccessortype_…
AaronRobinsonMSFT 2e56766
Array support.
AaronRobinsonMSFT b46266c
Remove now-incorrect generics handling and fix handling of invalid ge…
jkoritzinsky 0d855f8
Adjust handling for "ref object" parameters
jkoritzinsky b7ce59b
Add missing case
jkoritzinsky 2a04159
Enforce signature validation explicitly for certain types.
AaronRobinsonMSFT 8cde6a1
Merge branch 'unsafeaccessortype_impl' of https://github.com/AaronRob…
AaronRobinsonMSFT 149c159
Update to use unbox.any instead of castclass. The unbox.any
AaronRobinsonMSFT 3f224dc
Fix mono
AaronRobinsonMSFT 174f886
CoreCLR nits
AaronRobinsonMSFT 2eb1b4b
Update NAOT handling
jkoritzinsky 15e93ee
Merge branch 'unsafeaccessortype_impl' of github.com:AaronRobinsonMSF…
jkoritzinsky a7d9c69
PR feedback
jkoritzinsky 2fb3b8a
[CoreCLR]
AaronRobinsonMSFT 5fba0a3
Update mono to block ref object on method return.
AaronRobinsonMSFT a91035c
Use helper function.
AaronRobinsonMSFT 93f6f68
Address arrays
AaronRobinsonMSFT 482f517
Remove unnecessary compare logic.
AaronRobinsonMSFT e8ca051
Remove unnecessary changes.
AaronRobinsonMSFT 4c26d4e
Nits
AaronRobinsonMSFT 3cfee4c
Remove specific Array branch.
AaronRobinsonMSFT 27f9eb2
PR feedback
jkoritzinsky 68f8070
Add UnsafeAccessorType tests
jkoritzinsky 393cb4a
Handle null ReplacedSignatureElements
jkoritzinsky f609f62
Fix NAOT trimming test
jkoritzinsky 5f3129e
Update API documentation.
AaronRobinsonMSFT d516333
Update comments.
AaronRobinsonMSFT be08886
Feedback
AaronRobinsonMSFT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.