Skip to content

Bump napi: dispatch guest N-API finalizers (ECO-415) - #6823

Open
Arshia001 wants to merge 1 commit into
napi-value-scope-reworkfrom
eco-415-guest-finalizers
Open

Bump napi: dispatch guest N-API finalizers (ECO-415)#6823
Arshia001 wants to merge 1 commit into
napi-value-scope-reworkfrom
eco-415-guest-finalizers

Conversation

@Arshia001

Copy link
Copy Markdown
Member

Submodule bump only: pulls wasmerio/napi#44 into the wasmer CLI's N-API runtime.

napi_wrap / napi_add_finalizer / napi_create_external_{arraybuffer,buffer} now re-run the guest's finalize callback on the deferred finalizer drain instead of dropping it, so guest-owned allocations and wrapped C++ objects are no longer leaked on the V8-imports WASIX lane (ECO-415).

Verified via the edgejs v8-wasix node suite (1623 pass; new 6 GiB memory-pressure test) and a 40x teardown loop.

Stacked on napi-value-scope-rework (ECO-416). Not independently mergeable yet.

馃 Generated with Claude Code

@Arshia001
Arshia001 requested a review from syrusakbary as a code owner July 28, 2026 14:31
@Arshia001
Arshia001 force-pushed the eco-415-guest-finalizers branch from db65ae3 to a22bf61 Compare July 28, 2026 14:31
Copilot AI review requested due to automatic review settings July 28, 2026 14:31

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

This PR updates the lib/napi git submodule to pull in wasmerio/napi#44, changing the Wasmer CLI鈥檚 N-API runtime behavior so guest finalizer callbacks are re-run during deferred finalizer draining (avoiding leaks for guest-owned allocations / wrapped objects on the V8-imports WASIX lane).

Changes:

  • Bump lib/napi submodule revision to include updated guest finalizer dispatch behavior (napi_wrap, napi_add_finalizer, napi_create_external_{arraybuffer,buffer}).
  • No in-repo Rust/CLI code changes are expected beyond the submodule pointer update (per PR description).

@Arshia001
Arshia001 force-pushed the eco-415-guest-finalizers branch from a22bf61 to 1517865 Compare July 28, 2026 14:54
@Arshia001
Arshia001 force-pushed the eco-415-guest-finalizers branch from 1517865 to 7e8cb54 Compare July 28, 2026 16:10
@Arshia001
Arshia001 force-pushed the eco-415-guest-finalizers branch from 7e8cb54 to e418254 Compare August 4, 2026 13:56
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