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] Check if we can still skip GC critical method check in WASM #75970

Closed
naricc opened this issue Sep 21, 2022 · 2 comments · Fixed by #88735
Closed

[WASM] Check if we can still skip GC critical method check in WASM #75970

naricc opened this issue Sep 21, 2022 · 2 comments · Fixed by #88735
Assignees
Labels
arch-wasm WebAssembly architecture area-GC-mono
Milestone

Comments

@naricc
Copy link
Member

naricc commented Sep 21, 2022

There is an ifdef here to skip the critical method check in wasm:

.

Its not clear if this can still be safely skipped when wasm is multithreaded. Wasm uses co-op suspend, so if the managed code has no GC safepoints, this should still be ok. If it does have safepoints, the runtime might need to do the critical method check.

If we are able to safely skip it, the comment should be updated to say it can be skipped because of co-op suspend and the lack of safepoints (rather than single threadedness).

@naricc naricc added arch-wasm WebAssembly architecture area-GC-mono labels Sep 21, 2022
@naricc naricc added this to the 8.0.0 milestone Sep 21, 2022
@ghost
Copy link

ghost commented Sep 21, 2022

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

Issue Details

There is an ifdef here to skip the critical method check in wasm:

.

Its not clear if this can still be safely skipped when wasm is multithreaded. Wasm uses co-op suspend, so if the managed code has no GC safepoints, this should still be ok. If it does have safepoints, the runtime might need to do the critical method check.

If we are able to safely skip it, the comment should be updated to say it can be skipped because of co-op suspend and the lack of safepoints (rather than single threadedness).

Author: naricc
Assignees: -
Labels:

arch-wasm, area-GC-mono

Milestone: 8.0.0

@lewing
Copy link
Member

lewing commented Jul 11, 2023

cc @pavelsavara

@pavelsavara pavelsavara self-assigned this Jul 11, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 26, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-GC-mono
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants