diff options
author | Sam Gross <colesbury@gmail.com> | 2024-04-08 14:47:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 14:47:42 (GMT) |
commit | 26a680a58524fe39eecb243e37adfa6e157466f6 (patch) | |
tree | 771940c33d30b40d10b1880465b45a2a0306ef7b /Mac | |
parent | 59864edd572b5c0cc3be58087a9ea3a700226146 (diff) | |
download | cpython-26a680a58524fe39eecb243e37adfa6e157466f6.zip cpython-26a680a58524fe39eecb243e37adfa6e157466f6.tar.gz cpython-26a680a58524fe39eecb243e37adfa6e157466f6.tar.bz2 |
gh-117293: Fix race condition in run_workers.py (#117298)
The worker thread may still be alive after it enqueues it's last result,
which can lead to a delay of 30 seconds after the test finishes. This
happens much more frequently in the free-threaded build with the GIL
disabled.
This changes run_workers.py to track of live workers by enqueueing a
`WorkerExited()` instance before the worker exits.
Diffstat (limited to 'Mac')
0 files changed, 0 insertions, 0 deletions