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

Merge nmirror to master - #1468

Merged
MichalStrehovsky merged 30 commits into
nmirrorfrom
master
Jul 5, 2016
Merged

MichalStrehovsky merged 30 commits into
nmirrorfrom
master

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Major pieces of the payload:

  • Changes to canonicalization in the type system to support Runtime Determined Types
  • Runtime Determined Types in the type system
  • Updated GC from CoreCLR
  • Exception handling on Unix

Testing:

  • Build and precheckin on x86ret
  • Build on amd64chk

MichalStrehovsky and others added 30 commits June 23, 2016 09:12
- Avoid doing the same work twice by merging
`ConversionToCanonFormIsAChange` and  `ConvertInstantiationToCanonForm`
- Fix TODO about unnecessary allocation in InstantiatedMethod.
Port the GC background thread creation from CoreCLR and implement
the new GCToOSInterface::CreateBackgroundThread.
- Match ComputeTypeFlags to the pattern used elsewhere to help find bugs
easier.
- Seal Context property
- Base type of specific canon is Object
Addition of OFFSETOF__InterfaceDispatchCache__m_rgEntries was getting dropped by the assembler in the original code for some reason.
* Fix issues with instantiated generics
- IsFinal property not correctly implemented for MethodForInstantiatedType
- GetFinalizer does not work if the type does not implement the finalizer directly, but instead inherits it from the parent type
Enable regular GC budget for RyuJIT codegen
…1439)

When compiling hello world, computing virtual method overrides shows up as pretty hot. Turns out the slowdown is mostly caused by the enumeration being slow. I'm introducing a caching version of the algorithm.

This drops hello world compilation time from ~3.4 seconds to ~3.2 seconds (!).

Some notes:
* Caching only the methods on definitions, not on instantiated types.
* I'm not adding cache invalidation. Since I'm not caching methods on generic instantiations, this shouldn't explode too much.
* We might get further benefit if we change `IEnumerable<MethodDesc>` to `MethodDesc[]` in the method signature, but I'm not sure we would want to do that.
- Rename the main compilation entrypoint from SingleFileCompilation to just Compile because of it is not limited to single file compilation
- Initialize default target architecture based on the process architecture
A runtime determined type wraps a canonical type and the information
about what generic parameter it is bound to.

Runtime determined types are only expected to show up during dependecy
analysis and when talking to codegen backends that can leverage
the extra information runtime determined types provide on top of
bare canonical forms to do advanced inlining in shared generic method bodies.
We need a proper logging infrastructure as a long term fix, but this shaves off 8% of the compilation time for Hello World, so worth it on it's own...
Better performance for MulticastDelegate.Equals
Fix build break at TFS side
@MichalStrehovsky
MichalStrehovsky merged commit 46b7bf4 into nmirror Jul 5, 2016
MichalStrehovsky pushed a commit to MichalStrehovsky/corert that referenced this pull request Mar 28, 2020
* gc, pal: Avoid linking libnuma.so on non-NUMA systems

In an effort to reduce the system calls performed during the
initialization, this seemed like another low-hanging fruit: only link
in libnuma.so if the system has more than one NUMA node.

* gc, pal: Remove unneeded dlsym() call

The result of dlsym() is never attributed to any variable, and this
function is never called, so it's safe to remove these dlsym() calls.
MichalStrehovsky pushed a commit to MichalStrehovsky/corert that referenced this pull request Mar 31, 2020
* gc, pal: Avoid linking libnuma.so on non-NUMA systems

In an effort to reduce the system calls performed during the
initialization, this seemed like another low-hanging fruit: only link
in libnuma.so if the system has more than one NUMA node.

* gc, pal: Remove unneeded dlsym() call

The result of dlsym() is never attributed to any variable, and this
function is never called, so it's safe to remove these dlsym() calls.
jkotas pushed a commit that referenced this pull request Apr 1, 2020
* gc, pal: Avoid linking libnuma.so on non-NUMA systems

In an effort to reduce the system calls performed during the
initialization, this seemed like another low-hanging fruit: only link
in libnuma.so if the system has more than one NUMA node.

* gc, pal: Remove unneeded dlsym() call

The result of dlsym() is never attributed to any variable, and this
function is never called, so it's safe to remove these dlsym() calls.
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.

6 participants