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][gc] Remove reliance on regs/stack scanning in some cases #101478

Merged
merged 3 commits into from
May 9, 2024

Conversation

BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Apr 24, 2024

On wasm we can miss refs, because we can't scan the native regs/stack. Make sure we explicitly use coop/gc handles instead. Hopefully fixes some gc crashes on wasm mt.

Copy link
Contributor

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

@BrzVlad BrzVlad merged commit 9be6287 into dotnet:main May 9, 2024
117 checks passed
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull request May 30, 2024
…et#101478)

* [mono][sgen] Allocated gchandle for this object when invoking finalizers

We were assuming the object is kept alive from the stack/regs, which is not reliable on wasm.

* [mono][metadata] Allocate handle while operating with newly allocated RuntimeType

* Enable test suite
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2024
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