-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasi: moves system resource management to the importing module (#401)
The prior design had a problem, where multiple imports of WASI would end up having different file descriptors for the same file. Moreover, there was no means to close any of these when a module importing WASI was closed. This moves all existing functionality to a new type SystemContext, which is owned by the importing module, similar to how it owns its memory. While this PR doesn't fix some problems such as unclosed files, the code is now organized in a way it can be, and these issues will be resolved by #394. In order to fix scope, `WASISnapshotPreview1WithConfig` had to be removed. Signed-off-by: Adrian Cole <[email protected]>
- Loading branch information
1 parent
bd245de
commit 9a0f7f6
Showing
18 changed files
with
701 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.