Repository navigation
Conversation
There was a problem hiding this comment.
Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.
Beyond the inline findings, I also checked the #[thread_local] CHILD_SINGLETON for cross-thread Strong use: the only writers are the JS-thread cluster entry points and ipc_child_singleton_deinit in src/runtime/jsc_hooks.rs, which runs at IPC close on the same thread that created the Strongs, so no cross-thread drop. The cfg(windows) write-complete branch and the clippy/rust:check-all pass were not run here; they were checked by reading only.
Extended reasoning...
The change rewrites the IPC send queue, advanced-mode read buffering, and cluster child singleton in src/runtime/ipc.rs, src/runtime/ipc_host.rs, src/runtime/node/node_cluster_binding.rs and src/js/builtins/Ipc.ts, with new tests; it touches no auth or crypto surface but does handle descriptor passing over IPC. Four confirmed findings are posted inline, so a human look is already signalled; this note only records the thread-affinity check on the new thread-local singleton.
|
Updated 8:31 PM PT - Nov 21st, 2026
✅ @claude, your commit 01cc90a303580b11feda0d0abe9a6fe810e26b97 passed in 🧪 To try this PR locally: bunx bun-pr 49324That installs a local version of the PR into your bun-49324 --bun |
What does this PR do?
Replaces part of #49156. One commit for each fix.
send()ran anArray.prototypesetter: use-after-freeSubprocesscollected during a readonDisconnectVisible changes:
send()ignores read-onlyArray.prototypeindexes. A nested decode error is reported once.Cost, µs for each read, release, main and this PR: 8 x 16 KB advanced 60.1 and 62.3, 30 x 16 KB 216 and 227 (the copy), 100 small JSON messages 23.7 and 24.6 (cause not found). Between two Bun processes, 13 workloads are within noise.
Not fixed: a listening worker leaks an unclaimed descriptor, a rejected
net.Serverleaks one, anddisconnect()drops a queued handle.How did you verify your code works?
Generated by Claude Code