-
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
Remove or document Unsafe.AsPointer uses in core libraries #99146
Conversation
- Also add internal helper method Unsafe.IsOpportunisticallyAligned - And cast a pointer to IntPtr instead of int for a unit test
Tagging subscribers to this area: @dotnet/area-system-memory Issue DetailsContributes to #99144
|
src/libraries/System.Memory/tests/ArrayBufferWriter/ArrayBufferWriterTests.T.cs
Show resolved
Hide resolved
Many tests are failing with
|
src/libraries/System.Memory/tests/MemoryMarshal/CreateFromPinnedArray.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/Unsafe.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/Unsafe.cs
Outdated
Show resolved
Hide resolved
- Other than MethodHandle code for NativeAOT - Add Unsafe.OpportunisticMisalignment
I've skipped the code in NativeAOT's |
...ate.CoreLib/src/System/Diagnostics/Tracing/NativeRuntimeEventSource.Threading.NativeSinks.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/Unsafe.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/Common/src/Internal/Runtime/CompilerHelpers/StartupCodeHelpers.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/Unsafe.cs
Outdated
Show resolved
Hide resolved
Should I include changes for the misc tests in this PR too? |
I would start a new PR for these. |
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs
Outdated
Show resolved
Hide resolved
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.
Thanks!
Contributes to #99144