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 fast if the delegate was collected prematurely #56523

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jul 29, 2021

Surfaces #55735 faster
If the method doesn't fail fast, it would create another instance of JSObject but without delegate object associated with it.
And then it will fail with misleading assert is in mono_class_init_internal

@ghost
Copy link

ghost commented Jul 29, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Surfaces #55735 faster

Author: pavelsavara
Assignees: -
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone: -

@pavelsavara pavelsavara requested review from lewing and kg and removed request for marek-safar July 29, 2021 08:34
@pavelsavara
Copy link
Member Author

CI failures are unrelated

@pavelsavara pavelsavara merged commit 5089894 into dotnet:main Jul 30, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 29, 2021
@pavelsavara pavelsavara deleted the wasm_gc_delegate_fail_fast branch November 20, 2021 19:34
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.

None yet

2 participants