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.
@Arshia001
Arshia001 requested a review from syrusakbary as a code owner August 4, 2026 13:56
Copilot AI lite review requested due to automatic review settings August 4, 2026 13:56
@Arshia001
Arshia001 force-pushed the guest-heap-mandatory-alloc branch from 478e441 to ccdfa40 Compare August 4, 2026 13:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/napi submodule to wasmerio/napi#49 (guest-heap-mandatory-alloc) revision.
  • Pull in upstream changes that remove the now-unreachable array-buffer-allocator external-budget hook.

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.

2 participants