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

Add type loader support for building arrays of pointers#3209

Merged
MichalStrehovsky merged 2 commits intodotnet:masterfrom
MichalStrehovsky:buildPointerArrays
Apr 7, 2017
Merged

Add type loader support for building arrays of pointers#3209
MichalStrehovsky merged 2 commits intodotnet:masterfrom
MichalStrehovsky:buildPointerArrays

Conversation

@MichalStrehovsky
Copy link
Member

This will be taking similar code paths as multidimensional arrays - the
arrays of pointers don't have anything "interesting" in the EEType and
should mostly just pass through.

Checking this in as disabled for PROJECTN since NUTC will blow up if it
sees an array of pointers.

This will be taking similar code paths as multidimensional arrays - the
arrays of pointers don't have anything "interesting" in the EEType and
should mostly just pass through.

Checking this in as disabled for PROJECTN since NUTC will blow up if it
sees an array of pointers.
@MichalStrehovsky
Copy link
Member Author

@davidwrighton PTAL

Copy link
Member

@davidwrighton davidwrighton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if you can use the mdarray template...

#if !PROJECTN
else if (type.IsSzArray && ((ArrayType)type).ElementType.IsPointer)
{
pTemplateEEType = typeof(void*[]).TypeHandle.ToEETypePtr();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you could simply have this use the same template as the multidimensional array path, and then we wouldn't need all the #if !PROJECTN bits.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, works fine that way.

@MichalStrehovsky
Copy link
Member Author

@dotnet-bot Test OSX Debug and CoreCLR tests
@dotnet-bot Test OSX Release

@MichalStrehovsky MichalStrehovsky merged commit 9a785be into dotnet:master Apr 7, 2017
@MichalStrehovsky MichalStrehovsky deleted the buildPointerArrays branch April 7, 2017 02:25
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.

3 participants