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

wasi-threads vs wasm start function #150

Open
yamt opened this issue Feb 10, 2024 · 0 comments
Open

wasi-threads vs wasm start function #150

yamt opened this issue Feb 10, 2024 · 0 comments

Comments

@yamt
Copy link
Owner

yamt commented Feb 10, 2024

our wasi-threads implementation calls instance_create within a host function.
depending on what the start function does, it can be problematic.
maybe it's simpler to leave the instance_create_execute_init part to the spawned thread.

  • spec-wise, on which thread the start function is supposed to be called?
  • can the start function perform problematic operations? eg. acquire a lock
  • if the start function traps, what should happen? should thread-spawn fail?
  • should wasi:thread-spawn synchronously create a new instance?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant