• Pablo Galindo's avatar
    bpo-35378: Fix multiprocessing.Pool references (GH-11627) · 3766f18c
    Pablo Galindo yazdı
    Changes in this commit:
    
    1. Use a _strong_ reference between the Pool and associated iterators
    2. Rework PR #8450 to eliminate a cycle in the Pool.
    
    There is no test in this commit because any test that automatically tests this behaviour needs to eliminate the pool before joining the pool to check that the pool object is garbaged collected/does not hang. But doing this will potentially leak threads and processes (see https://bugs.python.org/issue35413).
    3766f18c
pool.py 28.9 KB