Skip to content

Fix exception handling in interface method that checks for marshalling requirements - #252

Merged
fadimounir merged 1 commit into
dotnet:masterfrom
fadimounir:FixMarshallingTest
Nov 26, 2019
Merged

fadimounir merged 1 commit into
dotnet:masterfrom
fadimounir:FixMarshallingTest

Conversation

@fadimounir

Copy link
Copy Markdown
Contributor

When looking at why we were not compiling some methods, it was due to the fact that the JIT was asking if some PInvokes could be inlined, and the stub emitter was returning "false" by throwing an exception.
Not handling the exception and returning false from the JIT interface API causes the exception to propagate, making us not compile the caller methods too.

@fadimounir
fadimounir requested a review from trylek November 25, 2019 22:27
@fadimounir

Copy link
Copy Markdown
Contributor Author

cc @dotnet/crossgen-contrib

@trylek trylek left a comment

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.

LGTM

@fadimounir
fadimounir merged commit ff2c9c0 into dotnet:master Nov 26, 2019
@fadimounir
fadimounir deleted the FixMarshallingTest branch November 27, 2019 02:05
@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.

2 participants