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

[mono][Browser] Interpreter doesn't fully support UnmanagedCallersOnly #39100

Closed
EgorBo opened this issue Jul 10, 2020 · 3 comments · Fixed by #39700 or mono/mono#20145
Closed

[mono][Browser] Interpreter doesn't fully support UnmanagedCallersOnly #39100

EgorBo opened this issue Jul 10, 2020 · 3 comments · Fixed by #39700 or mono/mono#20145
Assignees
Labels
Milestone

Comments

@EgorBo
Copy link
Member

EgorBo commented Jul 10, 2020

Currently, the only way to pass a managed callback to a pinvoke in Mono-Wasm-Interp is to use IntPtr + Marshal.GetFunctionPointerForDelegate + MonoPinvokeCallbackAttribute.

/cc @vargaz

I will use link to this issue for workarounds.

@ghost
Copy link

ghost commented Jul 10, 2020

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

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jul 10, 2020
@EgorBo
Copy link
Member Author

EgorBo commented Jul 16, 2020

Once fixed, MonoPInvokeCallbackAttribute should be removed from System.Private.CoreLib

@marek-safar marek-safar removed the untriaged New issue has not been triaged by the area owner label Jul 16, 2020
@marek-safar marek-safar added this to the 5.0.0 milestone Jul 16, 2020
@jkotas
Copy link
Member

jkotas commented Jul 21, 2020

I have extended this workaround to apply to all Mono targets in #39082

jkotas added a commit to jkotas/runtime that referenced this issue Jul 21, 2020
vargaz added a commit to vargaz/runtime that referenced this issue Jul 21, 2020
vargaz added a commit that referenced this issue Jul 21, 2020
…9700)

* [runtime] Initialize the class if needed in type_is_blittable ().

Fixes #39100.

* Delete workarounds.
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this issue Aug 10, 2020
…tnet#39700)

* [runtime] Initialize the class if needed in type_is_blittable ().

Fixes dotnet#39100.

* Delete workarounds.
@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.