Skip to content

Conversation

@rachgreen33
Copy link
Contributor

@rachgreen33 rachgreen33 commented Oct 17, 2025

The emscripten_notify_memory_growth function is invoked by emscripten when it grows the heap. Allowlisting this function is needed in order to make use of a smaller emscripten INITIAL_HEAP setting

@rachgreen33 rachgreen33 marked this pull request as ready for review October 22, 2025 14:44
@mpwarres
Copy link
Contributor

The emscripten_notify_memory_growth function is invoked by emscripten when it grows the heap.

Suggest adding to PR description: "Allowlisting this function is needed in order to make use of a smaller emscripten INITIAL_HEAP setting."

// logging (stdout/stderr)
"wasi_unstable.fd_write", "wasi_snapshot_preview1.fd_write",
// emscripten
"env.emscripten_notify_memory_growth",
Copy link
Member

Choose a reason for hiding this comment

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

Style: I'd move this at the top, to avoid intermixing env.* with wasi_* in the list.

LGTM otherwise.

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.

3 participants