mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
The destructor and autoscale idle-exit path could race: a worker calling _remove_self would erase itself from _threads and detach while the destructor was iterating _threads to enqueue poison pills and join. This could cause too few poison pills (deadlocking remaining workers) or pthread_join on a detached thread (UB). Two changes: - _remove_self now checks _stop and returns immediately during shutdown, ensuring no thread detaches after destruction begins. - Destructor snapshots _threads under the mutex before enqueueing poison pills and joining, so it operates on a stable copy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||