Skip to content

Fix marshalling null delegates#241

Merged
jkotas merged 3 commits intodotnet:masterfrom
MichalStrehovsky:fixDelegate
Nov 25, 2019
Merged

Fix marshalling null delegates#241
jkotas merged 3 commits intodotnet:masterfrom
MichalStrehovsky:fixDelegate

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

Null delegates marshal as null pointers and vice versa.

Found on the CoreRT side. Didn't try looking for test coverage here.

Null delegates marshal as null pointers and vice versa.

codeStream.EmitLabel(lNullPointer);

StoreNativeValue(codeStream);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

StoreNativeValue expects value of the right type on the IL stack. We do not have value of the right type on the IL stack here for the null case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sigh, wanted to avoid the branching dance so hard I missed this...

@jkotas jkotas merged commit 0953da2 into dotnet:master Nov 25, 2019
@MichalStrehovsky MichalStrehovsky deleted the fixDelegate branch November 26, 2019 14:32
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
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