Skip to content

add __wasilibc_reset_preopens#489

Merged
sunfishcode merged 1 commit intoWebAssembly:mainfrom
dicej:reset-preopens
Apr 11, 2024
Merged

add __wasilibc_reset_preopens#489
sunfishcode merged 1 commit intoWebAssembly:mainfrom
dicej:reset-preopens

Conversation

@dicej
Copy link
Copy Markdown
Collaborator

@dicej dicej commented Apr 3, 2024

This resets the preopens table to an uninitialized state, forcing it to be reinitialized next time it is needed. This is useful when pre-initializing using e.g. wizer or component-init. Such tools are capable of taking a snapshot of a running application which may later be resumed on an unrelated runtime (which may have its own, unrelated preopens).

This resets the preopens table to an uninitialized state, forcing it to be
reinitialized next time it is needed.  This is useful when pre-initializing
using e.g. `wizer` or `component-init`.  Such tools are capable of taking a
snapshot of a running application which may later be resumed on an unrelated
runtime (which may have its own, unrelated preopens).

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@sunfishcode sunfishcode merged commit 9e8c542 into WebAssembly:main Apr 11, 2024
@sunfishcode
Copy link
Copy Markdown
Member

Makes sense, thanks!

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

Successfully merging this pull request may close these issues.

2 participants