This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Merge nmirror to master - #845
Merged
Merged
Conversation
The loop hijack worker routine is not honoring the contract that it should be. Namely, the runtime is not allowed to trash any registers in our worker (except r12 on ARM). The two big oversights were scratch FP registers and the flags registers. I have also added a per-module map from loop index to target address (thus requiring all the shash.h includes). This primarily helps gcstress throughput because the loop indirection cell address calculation ends up being surprisingly lengthy. I considered the other obvious approach of "back-patching" the loop indirection cell in the gcstress case (normal loop hijacking does this, but under gcstress, we do not). However, I ended up preferring this because it could help GC suspension latency in normal operation. [tfs-changeset: 1573401]
Merge changes from TFS
…ARM due to failure to allocate a return buffer of type Nullable<T> The calling convention converter needs to directly call into RhNewObject when allocating return buffers in dynamic invoke cases, without any special casing. The NewObject API was returning null on some special case types, including Nullable<T>. [tfs-changeset: 1573797]
…eption in Internal::Reflection::Core::NonPortable::RuntimeTypeUnifier::TypeTableForConstructedGenericTypes.Factory Before the introduction of dynamic generics, the Reflection.Core layer would call into the Reflection.Execution layer to get metadata for a reflectable generic type. The old mapping tables only had entries for reflectable types, so if a type was blocked from reflection, it would not exist in the mapping table, and this translated into a MissingMetadata exception eventually. With dynamic generics, we are able to find all instantiations (or dynamically create them), and the ReflectionBlocked attribute was never checked. This fixes the issue by making the Reflection.Core layer check for blocked types first before calling into the Reflection.Execution layer to get a RTTH for the generic type instantiation. [tfs-changeset: 1573800]
Merge changes from TFS
Merge changes from TFS
…trols is 6X-7X slower with XAML UI Diagnostics On and .Net Native Turn On
Change Description:
This is a performance bug which occurs with .NET native on and UI XAML debugging on. I investigated the scenario using PerfView and I noticed that apparently a significant amount of time (~50%) was spent on ICastable.IsInstanceOfInterface function. Ideally Luqun's McgTypeInfo removal change should take care of this, but that change has been marked as too risky for update 2. This is an effort to address the perf issue with minimal risk by selectively porting some of the code from Luqun's shelveset. In particular, we try to optimize the path by putting RuntimeTypeHandle to McgTypeInfo in the slow path because that is very expensive.
[tfs-changeset: 1573933]
Merge changes from TFS
Conflicts: src/Native/Runtime/CachedInterfaceDispatch.cpp
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.