chore: bump napi: make GuestHeap the only V8 allocation path - #6844
Open
Arshia001 wants to merge 2 commits into
Open
chore: bump napi: make GuestHeap the only V8 allocation path#6844Arshia001 wants to merge 2 commits into
Arshia001 wants to merge 2 commits into
Conversation
This was referenced Jul 31, 2026
Pulls in wasmerio/napi guest-heap-mandatory-alloc: N-API instantiation now fails outright if the guest has no linear memory or GuestHeap setup fails, instead of silently falling back to unbudgeted host-heap allocation for V8 ArrayBuffers/Buffers/TypedArrays.
Follow-up to the previous bump: GuestHeap being mandatory made TrackingArrayBufferAllocator's host-heap external-budget hook (napi_host_external_try_charge and friends) unreachable, so it's gone.
Arshia001
force-pushed
the
guest-heap-mandatory-alloc
branch
from
August 4, 2026 13:56
478e441 to
ccdfa40
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Updates the lib/napi submodule to a newer revision that makes GuestHeap the mandatory V8 allocation path, causing N-API instantiation to fail instead of falling back to unbudgeted host-heap allocation when guest linear memory/GuestHeap setup is unavailable.
Changes:
- Bump
lib/napisubmodule towasmerio/napi#49(guest-heap-mandatory-alloc) revision. - Pull in upstream changes that remove the now-unreachable array-buffer-allocator external-budget hook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lib/napito Make GuestHeap the only V8 allocation path; hard-fail if it can't be built napi#49 (guest-heap-mandatory-alloc): N-API instantiation now fails outright if the guest has no linear memory or GuestHeap setup fails, instead of silently falling back to unbudgeted host-heap allocation for V8 backing stores. Also removes the now-dead array-buffer-allocator external-budget hook this made unreachable.Test plan
cargo check -p wasmer-napi --features cli— cleanStacked on #6829.
🤖 Generated with Claude Code