-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Consolidate runtime helpers (X86Base, Interlocked, Buffer) across CoreCLR and NativeAOT #122791
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
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
19cb0fd
Initial plan
Copilot 94e2e1b
Move X86Base._cpuidex QCall implementation to shared location
Copilot b9bd895
Fix build errors: update csproj files and include CommonMacros.h for …
Copilot 60923ca
Update src/coreclr/runtime/MiscNativeHelpers.cpp
jkotas 90fa732
Update src/coreclr/runtime/MiscNativeHelpers.cpp
jkotas 89bf1d7
Remove extra blank lines in MiscHelpers.cpp and fix NativeAOT build
Copilot 06bba12
Move Interlocked_MemoryBarrierProcessWide, Buffer_Clear, and Buffer_M…
Copilot bb20748
Rename __cpuidex to CpuId to match public method name
Copilot 0f883dd
Rename __cpuidex to CpuId in Mono implementation to fix build breaks
Copilot e15ca0e
Move Buffer and Interlocked QCall declarations to shared files, creat…
Copilot 1de4b1d
Rename __cpuidex to CpuId in Mono native implementation
Copilot cb47710
Update src/coreclr/nativeaot/Runtime/common.h
jkotas cc3eb7f
Update src/coreclr/runtime/MiscNativeHelpers.cpp
jkotas 310ed51
Revert changes to src/coreclr/gc/env/common.h
Copilot 5e235e8
Delete INLINE macro definition from CommonMacros.h
Copilot 4330c10
Move MemmoveInternal and ZeroMemoryInternal to SpanHelpers.ByteMemOps.cs
Copilot 716a47f
Replace Buffer QCalls with direct memset/memmove calls and fix ZeroMe…
Copilot 4e3f3d4
Update src/coreclr/vm/comutilnative.cpp
jkotas d3c3f37
Apply suggestions from code review
jkotas e9fa3b9
Apply suggestions from code review
jkotas d4f3574
Rename ZeroMemoryInternal to ZeroMemoryNative and MemmoveInternal to …
Copilot 0fdae71
Update ZeroMemoryNative to use Unsafe.WriteUnaligned and Block16
Copilot f576817
Fix Mono icall mappings and suppress CS3016 warnings
Copilot ad1c3b9
Apply suggestions from code review
jkotas 562069e
Apply suggestions from code review
jkotas 72bcb60
Update src/libraries/System.Private.CoreLib/src/System/SpanHelpers.By…
jkotas 4a9e0d4
Delete ZeroMemoryNative and MemmoveNative from Mono Buffer.Mono.cs
Copilot 15377c0
Add Mono-specific memmove/memset/CpuId implementations and consolidat…
Copilot b2cfc82
Update src/libraries/System.Private.CoreLib/src/System/SpanHelpers.By…
jkotas b9c1c56
Update src/libraries/System.Private.CoreLib/src/System/SpanHelpers.By…
jkotas e5f973e
Update src/libraries/System.Private.CoreLib/src/System/SpanHelpers.By…
jkotas 0e99b23
Apply suggestions from code review
jkotas 44a4fb5
Rename Mono icalls to ves_icall_System_SpanHelpers_* and update signa…
Copilot 9c583d7
Change Mono memmove/memset pointer arguments to void* to match native…
Copilot 5050a71
Change non-Mono memmove/memset pointer arguments to void*
Copilot bd73bcd
Fix NativeAOT build breaks in CommonMacros.h and PalUnix.cpp
Copilot ef6c987
Delete OS_PAGE_SIZE and related page size functions
Copilot 5678d00
Add common.h as first include to fix NativeAOT build breaks
Copilot c5f307d
Delete Range.h and AllocHeap::Contains method
Copilot 1900ee3
Update src/coreclr/nativeaot/Runtime/allocheap.h
jkotas 2c28119
Update src/coreclr/nativeaot/Runtime/common.h
jkotas 688fe09
Update src/coreclr/nativeaot/Runtime/common.h
jkotas ffa12dc
Fix THUNKS_MAP_SIZE macro to cast OS_PAGE_SIZE to int
Copilot b7f7f50
Update src/coreclr/nativeaot/Runtime/ThunksMapping.cpp
jkotas 092c67b
Add int casts to RhpGetNumThunkBlocksPerMapping and RhpGetNumThunksPe…
Copilot 691b295
Cache THUNKS_MAP_SIZE in local variable to avoid recomputation
Copilot 24d7355
Add type casts to fix size_t conversion warnings in ThunksMapping.cpp
Copilot 7a0e6b9
Move System.SpanHelpers ICALL_TYPE to correct alphabetical position
Copilot 919ebb9
Add uint32_t cast to fix conversion warning at line 236
Copilot d181eaa
Update src/libraries/System.Private.CoreLib/src/System/SpanHelpers.By…
jkotas 4d5e421
Update src/libraries/System.Private.CoreLib/src/System/SpanHelpers.By…
jkotas c54f824
Fix alignment mask calculations and remove int32_t cast
Copilot 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
14 changes: 0 additions & 14 deletions
14
src/coreclr/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/X86Base.CoreCLR.cs
This file was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
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.