Skip to content

polling, stashing/restoration of globals#2

Merged
dozreg-toplud merged 1 commit into
urbit:urwasmfrom
dozreg-toplud:extra_functions
Mar 5, 2026
Merged

polling, stashing/restoration of globals#2
dozreg-toplud merged 1 commit into
urbit:urwasmfrom
dozreg-toplud:extra_functions

Conversation

@dozreg-toplud
Copy link
Copy Markdown

Added another global m3_poller for an optional callback that gets called in Wasm loops and before function calls. It won't be used in Vere now but it might get used in the future.

Also adds struct definition and a function to stash/restore global variables that wasm3 uses.

@dozreg-toplud dozreg-toplud merged commit 05c0308 into urbit:urwasm Mar 5, 2026
@dozreg-toplud dozreg-toplud deleted the extra_functions branch March 5, 2026 12:20
pkova added a commit to urbit/vere that referenced this pull request Mar 10, 2026
Updates wasm3 dependency after urbit/wasm3#2 and
adds additional stashing of global variables in case of reentrance.
Previously only pointers to the arenas were stashed but not the
allocating functions, which could have caused more `bail:fail`s than it
had to.
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.

1 participant