This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Merge master to nmirror - #1101
Merged
Merged
Conversation
This format is used to represent serialized type names in custom attribute blobs and is a prerequisite to generating custom attribute metadata. This is a stopgap implementation and a line-by-line port from NUTC. Fixes #504.
Implement parser for ECMA-335 SerString format
* Add code to generate a metadata blob containing type definition
metadata for all types that had an EEType generated in the current
compilation.
* Hook up Reflection.Execution by rooting the static constructor on
ReflectionExecution (this constructor is eager - just rooting it makes
it run).
* Add mock implementation of RhFindBlob that lets us find blob 13 -
metadata blob
This should be enough to support `Type.GetType("SomeType,
SomeAssembly")`. It's not enough to support things like
`foo.GetType().GetTypeInfo().FullName` - we need mapping table
generation for that.
EETypeRva field is now an EEType pointer.
This includes: * An implementation of ICustomAttributeTypeProvider from S.R.Metadata * Generation of CustomAttribute records * Calls to generate custom attributes for HasCustomAttribute metadata records This also includes a test to test the tricky part of making custom attributes disappear from metadata if they refer to types that are blocked from reflection.
Enable native metadata generation
The JIT expansion of this intrinsic assumes RuntimeTypeHandle has a single field of type RuntimeType which is not the case right now.
Use ToStringInvariant in a few more places
Use NativePrimitiveEncoder to emit StringDataNodes
Add emission of custom attributes
There's a two way link between a scope definition and the root namespace. We were setting it up one way only.
Set parent namespace for root namespaces
- Implemented a simple JIT host - Removed TODOs fixed by the update
Enable Project N reflection stack
using @leemgs commit (from CoreCLR) dotnet/coreclr@f2e59cf confirmed by @manu-silicon
Documentation: Remove Patching Urcu Section
Update RyuJIT
The generated method bodies throw an exception.
Generate method bodies for Delegate.Begin/EndInvoke
Blitting Chars is fine if the target is Unicode. One of the test libraries in CoreCLR test suite uses DateTime.Now and it turns out this is the only thing we need to support it. I hit this while trying to run some delegate tests.
Allow blitting types with Char fields
Merge nmirror to master
RyuJIT started calling IEEMemoryManager interface methods late during process shutdown. Since IEEMemoryManager is implemented in C#, it leads to crashes caused by attempts to run managed code on CLR that has been shutdown already. The fix is to switch the implementation of IEEMemoryManager from C# to C++ in jitinterface wrapper .dll. I have also added __stdcall modifiers as appropriate to make the code ready for x86.
Native executable is actually dropped in directories like `bin\Debug\dnxcore50\win7-x64\native` on my box. Prefix ilcpath with `repo_root`.
Fix crash during shutdown
Fix signature instantiation for generic method on generic types
Before this change, generic virtual methods would compile, but since we don't do any expansion, they would cause linker failures downstream. Root causing the linker failure is not possible without debugging the compiler. Making the compiler error out instead.
We need to be able to distinguish between different methods implemented by the same P/Invoke. Fixes #1083.
The multicast array is of type Delegate[] and we need to access it like that.
Generate ``` intptr_t* _12 = (intptr_t*)((void **)_11+1); ``` instead of ``` intptr_t* _12 = ((void **)_11+1); ```
This gets rid of a bunch of casts and sets us on a path to remove the _cppCodeGen special casing.
Fail compilation of generic virtual methods
Use System.Delegate in multicast thunk instead of OwningType
Cast to target type when unboxing
Make MethodEntrypoint always return IMethodNode
- Migrate to CLI 1.0.0-beta-002209 - Alter scripting to support CLI package layout and Azure blob URL changes
Roll forward to newer CLI
Windows' CLI blob seems to have been removed and can no longer be restored during build. Roll forwards to the latest blob.
Update CLI to 1.0.0-beta-002228
We use CLR_RUNTIMETYPEHANDLE to turn on the "RTTH is RuntimeType" behavior.
Align FixupRuntimeTypeHandle definition with RuntimeTypeHandle
Latest version of dotnet CLI gets deeply offended by the lack of "runtimes" section
Fix repro project RSP file generation
This change fixes the GCHeap::GetValidGen0MaxSize to return values generated by the GCToOSInterface::GetLargestOnDieCacheSize even for FEATURE_REDHAWK.
Fix GCHeap::GetValidGen0MaxSize
LINQ Select operator uses generic virtual methods, which is both an overkill, and prevents us from selfhosting the compiler. Replacing all of LINQ with a lighter weight implementation for good measure.
Remove usage of LINQ from the metadata writer
… in combination. This is done via asserts around comparison operators which should be sufficient.
While a PublicKey is a valid representation in a reference, its rarely/never desireable. PublicKeyTokens are all that are expected to be present during assembly resolution, and thus resolution algorithms ignore the extra data encoded in a PublicKey as opposed to a PublicKeyToken, and actually must perform conversion to a PublicKeyToken to function which can be costly.
Detect cases when type system objects from multiple contexts are used…
Always use PublicKeyToken in metadata transform instead of PublicKey
Merge nmirror to master
Member
|
@MichalStrehovsky Thank you for doing this! |
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.
I did a full build and ran the precheckin test on the TFS side with the set of changes that are coming in. I will also cross my fingers when I merge this.
cc @davidwrighton @trylek