You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(storage): settle the OS Worker join on darwin too, and cap isolate churn
Cherry-picked from #849 (Wibias) onto current dev. That PR carries 21
commits against a base four commits behind and conflicts in four files
that dev has since fixed independently — the two files here are the part
dev still lacks, so they land directly rather than dragging a stale
merge through.
Bun 1.3.14 has a second Worker-reclaim failure mode beyond the Windows
unbalanced-join panic: a segfault with a *balanced*
workers_spawned === workers_terminated count, seen as exit 132/133 on
both ubuntu and macOS Silicon under `bun test --isolate`. It crashes the
whole run after green assertions, so every PR touching nothing related
goes red.
Two changes. `worker-lifecycle` now runs the post-close OS-join settle on
darwin as well as win32, and disarms the terminate timeout before that
settle so a late timer cannot report a false timeout after close already
won. The isolate test caps spawn churn per platform (win32 8, linux 2,
darwin 1) and skips the Worker-spawning cases on darwin, where even one
cycle tripped the runtime; a meta-test keeps the caps themselves covered
so the skip cannot silently rot.
Co-authored-by: Wibias <Wibias@users.noreply.github.com>
0 commit comments