Repository navigation
Conversation
Bring the dotnet#123252 scheme to CoreCLR cached interface dispatch: call sites pass the cell to RhpInterfaceDispatch, the cell caches one MethodTable/target pair, and other pairs go to a global hashtable laid out like GenericCache<Key, nint>. Cells are updated with a pointer-sized CAS and a release store, so the 16-byte CAS, the per-size stubs and the per-cell caches are gone. NativeAOT's unused 16-byte CAS and the libatomic dependency on riscv64 and loongarch64 are removed as well. crossgen2 emits the new READYTORUN_HELPER_InterfaceDispatch (R2R 34.1) with 3-pointer cells. Runtimes without cached interface dispatch reject code that uses it. Co-authored-by: Cursor <[email protected]>
|
Azure Pipelines: Successfully started running 6 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @agocke |
Co-authored-by: Cursor <[email protected]>
…tch-helpers # Conflicts: # src/coreclr/inc/readytorun.h
Member
Author
|
@jkotas, follow-up to #123252 (comment): CoreCLR (JIT and R2R) now uses the dispatch helper when cached interface dispatch is enabled. This doesn't touch the same files as #137436, but once both are in, the NativeAOT and CoreCLR copies of |
This was referenced Nov 20, 2026
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bring the #123252 scheme to CoreCLR cached interface dispatch: call sites pass the cell to RhpInterfaceDispatch, the cell caches one MethodTable/target pair, and other pairs go to a global hashtable laid out like GenericCache<Key, nint>.
Cells are updated with a pointer-sized CAS and a release store, so the 16-byte CAS, the per-size stubs and the per-cell caches are gone. NativeAOT's unused 16-byte CAS and the libatomic dependency on riscv64 and loongarch64 are removed as well.
crossgen2 emits the new READYTORUN_HELPER_InterfaceDispatch (R2R 34.1) with 3-pointer cells. Runtimes without cached interface dispatch reject code that uses it.