Skip to content

[wasm-mt] Add coop GC transitions to various EMSCRIPTEN_KEEPALIVE functions; define to noop if no threads - #69515

Merged
lambdageek merged 3 commits into
dotnet:mainfrom
lambdageek:wasm-mt-timeout-gc
May 22, 2022
Merged

lambdageek merged 3 commits into
dotnet:mainfrom
lambdageek:wasm-mt-timeout-gc

Conversation

@lambdageek

Copy link
Copy Markdown
Member

Any runtime function that is called from JS must perform a transition to GC unsafe mode on the multi-threaded runtime.

With threading disabled, these macros will expand to nothing.

@ghost ghost assigned lambdageek May 18, 2022
@ghost ghost added the area-VM-meta-mono label May 18, 2022
@ghost

ghost commented May 18, 2022

Copy link
Copy Markdown

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

Issue Details

Any runtime function that is called from JS must perform a transition to GC unsafe mode on the multi-threaded runtime.

With threading disabled, these macros will expand to nothing.

Author: lambdageek
Assignees: lambdageek
Labels:

arch-wasm, area-Threading-mono

Milestone: -

@lambdageek
lambdageek requested review from kg and lateralusX May 18, 2022 20:58
@lambdageek
lambdageek force-pushed the wasm-mt-timeout-gc branch from e8404d7 to 8c2c79d Compare May 18, 2022 21:00
Comment thread src/mono/mono/utils/mono-threads-api.h Outdated
@lambdageek
lambdageek force-pushed the wasm-mt-timeout-gc branch from e1f8c64 to 640bffb Compare May 22, 2022 01:56
@lambdageek
lambdageek merged commit 8f1e435 into dotnet:main May 22, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-VM-threading-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants