Skip to content

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 added 3 commits May 3, 2024 17:49
@BrzVlad BrzVlad merged commit 9be6287 into dotnet:main May 9, 2024
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