Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Fail right away in interp_create_method_pointer () when trying to create a function pointer to a native-to-managed wrapper. #39260

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Jul 14, 2020

The previous method of returning interp_no_native_to_managed doesn't work:

  • The runtime expects different function pointers for different methods, returning
    the same pointer leads to all kinds of weird errors.
  • On wasm, the native caller expects the function to have the right signature, so
    calling interp_no_native_managed () will leads a to signature mismatch error which is
    hard to debug.

… to create a function pointer to a native-to-managed wrapper.

The previous method of returning interp_no_native_to_managed doesn't work:
* The runtime expects different function pointers for different methods, returning
  the same pointer leads to all kinds of weird errors.
* On wasm, the native caller expects the function to have the right signature, so
  calling interp_no_native_managed () will leads a to signature mismatch error which is
  hard to debug.
@ghost
Copy link

ghost commented Jul 14, 2020

Tagging subscribers to this area: @BrzVlad, @lewurm
Notify danmosemsft if you want to be subscribed.

@vargaz
Copy link
Contributor Author

vargaz commented Jul 14, 2020

This will cause some tests which worked previously to fail with a PNSE. It will also cause some random failures like
#39187
to fail with a PNSE as well.

@akoeplinger akoeplinger merged commit 078755e into dotnet:master Jul 14, 2020
@vargaz vargaz deleted the interp-no-managed branch July 14, 2020 12:44
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants