Skip to content

wasi: fix poll_oneoff memory interface

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/wasi-poll-mem into master

The WASM memory interfacing logic was wrong (particularly around the size of __wasi_subscription_t). This commit fixes the logic.

(poll_oneoff() is still unimplemented in uvwasi. I tested this with a local development implementation of poll_oneoff(). The implementation worked, but native poll() doesn't work well cross platform, so I'm currently trying to rewrite it using libuv uv_poll_ts.)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading