Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Merge nmirror to master - #845

Merged
jkotas merged 10 commits into
dotnet:masterfrom
jkotas:nmirror-merge
Feb 10, 2016
Merged

jkotas merged 10 commits into
dotnet:masterfrom
jkotas:nmirror-merge

Conversation

@jkotas

@jkotas jkotas commented Feb 10, 2016

Copy link
Copy Markdown
Member

No description provided.

smosier and others added 10 commits February 8, 2016 12:44
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]
…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]
…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]
Conflicts:
	src/Native/Runtime/CachedInterfaceDispatch.cpp
jkotas added a commit that referenced this pull request Feb 10, 2016
@jkotas
jkotas merged commit f966d94 into dotnet:master Feb 10, 2016
@jkotas
jkotas deleted the nmirror-merge branch February 17, 2016 14:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants