-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsThere is an ifdef here to skip the critical method check in wasm: runtime/src/mono/mono/metadata/sgen-mono.c Line 237 in 77bf509
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).
|
cc @pavelsavara |
There is an ifdef here to skip the critical method check in wasm:
runtime/src/mono/mono/metadata/sgen-mono.c
Line 237 in 77bf509
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).
The text was updated successfully, but these errors were encountered: