Skip to content

chore: bump napi: make GuestHeap the only V8 allocation path - #6844

Open
Arshia001 wants to merge 2 commits into
eco-416-tls-handshakefrom
guest-heap-mandatory-alloc
Open

chore: bump napi: make GuestHeap the only V8 allocation path#6844
Arshia001 wants to merge 2 commits into
eco-416-tls-handshakefrom
guest-heap-mandatory-alloc

Conversation

@Arshia001

@Arshia001 Arshia001 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Bumps lib/napi to 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 — clean

Stacked on #6829.

🤖 Generated with Claude Code

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.
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