Skip to content

[WASI] finalizer + HTTP client child resources - #107096

Merged
pavelsavara merged 5 commits into
dotnet:mainfrom
pavelsavara:wasi_finalizer_and_child_resources
Aug 29, 2024
Merged

pavelsavara merged 5 commits into
dotnet:mainfrom
pavelsavara:wasi_finalizer_and_child_resources

Conversation

@pavelsavara

@pavelsavara pavelsavara commented Aug 28, 2024 •

Copy link
Copy Markdown
Member

Related bytecodealliance/wit-bindgen#1039

- rewrite HTTP to respect child resources
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-GC-mono os-wasi Related to WASI variant of arch-wasm labels Aug 28, 2024
@pavelsavara pavelsavara added this to the 10.0.0 milestone Aug 28, 2024
@pavelsavara pavelsavara self-assigned this Aug 28, 2024
#if defined(HOST_WASI)
// TODO: Schedule the background job on WASI. Threads aren't yet supported in this build.
#if defined(HOST_WASI) && defined(DISABLE_THREADS)
mono_runtime_do_background_work ();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not confident what are problems of doing it here synchronously and inline, for single-threaded runtime. Will test and see what happens.

pavelsavara added a commit to pavelsavara/runtimelab that referenced this pull request Aug 28, 2024

@dicej dicej left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall. Thanks for doing this!

Just a few comments and questions inline.

@pavelsavara

Copy link
Copy Markdown
Member Author

I expect this is still early version of the code. Until we have better test coverage, with our existing test suite.
I assume we have gaps in:

  • streaming + cancelation + disposal behavior
  • tail headers
  • various features which actually don't have to be PNSE on WASI
  • eventually rewrite for preview3 promises

@pavelsavara
pavelsavara requested a review from maraf August 29, 2024 10:52
@pavelsavara
pavelsavara marked this pull request as ready for review August 29, 2024 10:53

@ilonatommy ilonatommy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@pavelsavara
pavelsavara merged commit e04659d into dotnet:main Aug 29, 2024
@pavelsavara
pavelsavara deleted the wasi_finalizer_and_child_resources branch August 29, 2024 16:36
dicej pushed a commit to dicej/runtimelab that referenced this pull request Aug 29, 2024
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
Co-authored-by: Joel Dice <joel.dice@fermyon.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-GC-mono os-wasi Related to WASI variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WASI] implement finalizer

3 participants