Use WeakSets rather than manual pruning to prevent unbounded growth of dead thread references.
2 files changed