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
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.
This was referenced Jul 31, 2026
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