Skip to content

Document how embedders release and re-enter the runtime #84

Closed

Description

@dimensionscape

Embedders that call main more than once (wasm callMain, plugin hosts) keep the old top of stack, since SetTopOfStack only widens it unless the thread is released with hx::SetTopOfStack(0,false), and the generated main always returns 0. The release call and its limits (statics are not re-initialised) should be documented, with a small helper if needed.

Activity

  1. added a commit that references this issue on Oct 21, 2026
    687c1e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions