clean up VM pipes and Swift handle on all lifecycle paths #33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding:
VM lifecycle cleanup depends heavily on process exit.
Problem:
src/vmz.zig, but most failure paths do not close both ends.lib/libvmz.swiftand released only after successful forced stop.Impact:
vmzexits the process from callbacks.vmz.runbecomes reusable, tested in-process, or embedded.Suggested fix:
Relevant code:
src/vmz.zig: pipe creation and callback-driven exits.lib/libvmz.swift: retained VMBridgeEngine and release only on successful forced stop.