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

Add mangled names for delegate and struct marshalling stubs#3220

Merged
shrah merged 1 commit intodotnet:masterfrom
shrah:name
Apr 7, 2017
Merged

Add mangled names for delegate and struct marshalling stubs#3220
shrah merged 1 commit intodotnet:masterfrom
shrah:name

Conversation

@shrah
Copy link
Contributor

@shrah shrah commented Apr 5, 2017

Michal added concept of prefix mangled type/method couples of
days ago which enables us to add managled name for delegate and struct
marshalling stubs.

@shrah
Copy link
Contributor Author

shrah commented Apr 5, 2017

@MichalStrehovsky PTAL

@shrah
Copy link
Contributor Author

shrah commented Apr 6, 2017

@dotnet-bot test OSX Release

@shrah
Copy link
Contributor Author

shrah commented Apr 6, 2017

@dotnet-bot test OSX Debug and CoreCLR tests

{
get
{
if (ThunkType == StructMarshallingThunkType.ManagedToNative)
Copy link
Contributor

Choose a reason for hiding this comment

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

A switch statement would be safer here. If we add more thunk types in the future, they'll fall into the Cleanup category silently.

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

The name of the interfaces became a bit weird (a method is now a "prefix-mangled type"?), but I don't really have any better name suggestions. If you could come up with a more fitting name, it would be great, but I'm not going to block on that.

@shrah
Copy link
Contributor Author

shrah commented Apr 6, 2017

I admit, the interface names have become a little confusing. I don't have any better name suggestions either. I can think of IPrefixMangledTypeContainer/ IPrefixMangledMethodContainer, but I am not sure whether that is any better. I will leave it as it is for now.

@shrah
Copy link
Contributor Author

shrah commented Apr 6, 2017

@dotnet-bot test OSX Release

@MichalStrehovsky
Copy link
Member

I will leave it as it is for now.

You should at lease update the comments on the interfaces then. With your change, the comments are outdated.

Michal added concept of prefix mangled type/method couple of
days ago which enables us to add managled name for delegate and struct
marshalling stubs.
@nattress
Copy link
Contributor

nattress commented Apr 7, 2017

This PR builds and passes basic tests on my Mac so we can probably just merge.

@shrah shrah merged commit 4d68cb2 into dotnet:master Apr 7, 2017
@shrah shrah deleted the name branch April 7, 2017 01:00
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