]> git.proxmox.com Git - wasi-libc.git/commit
Add a check to command modules to ensure that they're only started once. (#329)
authorDan Gohman <dev@sunfishcode.online>
Fri, 14 Oct 2022 00:58:14 +0000 (17:58 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Oct 2022 00:58:14 +0000 (17:58 -0700)
commit21d93b927d11dcf54f04086dbf5aa0bf7a85e69f
treed9b876475ba99f02cf2fb59653fa8a1072ba2257
parent9d2f5a8242667ac659793b19163cbeec1e077e01
Add a check to command modules to ensure that they're only started once. (#329)

* Add a check to command modules to ensure that they're only started once.

Wasm command modules should only be called once per instance, because
the programming model doesn't leave linear memory in a reusable state
when the program exits. As use cases arise for loading wasm modules in
environments that want to treat them like reactors, add a safety check
to ensure that command modules are used according to their
expectations.
libc-bottom-half/crt/crt1-command.c