summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-03 22:28:13 (GMT)
committerGitHub <noreply@github.com>2023-10-03 22:28:13 (GMT)
commit414f5620812584906eed8a19405f148641b248d6 (patch)
tree74a1b81ddf29dbac4ad1f572590eff42e89e142f /Python/ceval.c
parent4c0f42bbc6fb9d2d0b46ecff07b995655a43c4ce (diff)
downloadcpython-414f5620812584906eed8a19405f148641b248d6.zip
cpython-414f5620812584906eed8a19405f148641b248d6.tar.gz
cpython-414f5620812584906eed8a19405f148641b248d6.tar.bz2
[3.12] gh-109917: Fix test instability in test_concurrent_futures (GH-110306) (#110315)
gh-109917: Fix test instability in test_concurrent_futures (GH-110306) The test had an instability issue due to the ordering of the dummy queue operation and the real wakeup pipe operations. Both primitives are thread safe but not done atomically as a single update and may interleave arbitrarily. With the old order of operations this can lead to an incorrect state where the dummy queue is full but the wakeup pipe is empty. By swapping the order in clear() I think this can no longer happen in any possible operation interleaving (famous last words). (cherry picked from commit a376a72bd92cd7c9930467dd1aba40045fb75e3b) Co-authored-by: elfstrom <elfstrom@users.noreply.github.com>
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions