-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Share some array code between CoreCLR and NativeAOT #116903
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
Conversation
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
Outdated
Show resolved
Hide resolved
Good job. At least the |
Yes I've mentioned it, I'm having trouble for running nativeaot tests locally, or mapping the throwing offset to code. |
Not sure if it helps but in debug build it asserts here:
|
OK, I was thinking no exception was thrown and the pointer types passed assignment test, and figuring out which line passes. Thanks for pointing out the failing stack trace. |
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM. Thank you!
Shares the major logic of Copy and Clear, cleared some others.
Using coreclr behavior has source of truth. NativeAOT didn't support primitive widen for enum->enum.