summaryrefslogtreecommitdiffstats
path: root/Python/codegen.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2025-03-07 14:58:09 (GMT)
committerGitHub <noreply@github.com>2025-03-07 14:58:09 (GMT)
commitc476410dc5ae62ffb5e32f64f9a3a622485c7d93 (patch)
tree190adfe8d0bab34b942654be5df8f376d6408f15 /Python/codegen.c
parent89df62c12093bfa079860a93032468ebece3774d (diff)
downloadcpython-c476410dc5ae62ffb5e32f64f9a3a622485c7d93.zip
cpython-c476410dc5ae62ffb5e32f64f9a3a622485c7d93.tar.gz
cpython-c476410dc5ae62ffb5e32f64f9a3a622485c7d93.tar.bz2
gh-110206: Fix multiprocessing test_notify_all (#130933)
The test could deadlock trying join on the worker processes due to a combination of behaviors: * The use of `assertReachesEventually` did not ensure that workers actually woken.release() because the SyncManager's Semaphore does not implement get_value. * This mean that the test could finish and the variable "sleeping" would got out of scope and be collected. This unregisters the proxy leading to failures in the worker or possibly the manager. * The subsequent call to `p.join()` during cleanUp therefore never finished. This takes two approaches to fix this: 1) Use woken.acquire() to ensure that the workers actually finish calling woken.release() 2) At the end of the test, wait until the workers are finished, while `cond`, `sleeping`, and `woken` are still valid.
Diffstat (limited to 'Python/codegen.c')
0 files changed, 0 insertions, 0 deletions