mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
- ThreadPool::destroy used to iterate _threads directly while another thread could be adjusting the same vector. Snapshot the vector under the mutex and iterate the local copy for pthread_cancel / pthread_join. - ObjPool::construct now returns NULL when the pooled allocator returns NULL instead of invoking placement-new on a null pointer. In destroy, compute to_node(obj) before running the destructor - the destructor may scrub bytes the to_node helper reads. - In the async/sync workers in fuse_loop, msgbuf_alloc can return NULL under memory pressure. Fail the worker cleanly with a diagnostic rather than dereferencing. Also introduce a small _nproc() helper that treats hardware_concurrency()==0 as 1, so the downstream min/max arithmetic doesn't produce a zero thread count. |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||