summaryrefslogtreecommitdiffstats
path: root/Lib/secrets.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2018-02-20 23:30:17 (GMT)
committerGitHub <noreply@github.com>2018-02-20 23:30:17 (GMT)
commitf53d9f2778a87bdd48eb9030f782a4ebf9e7622f (patch)
tree42d0046cdda94825c800ed17db78f85c79d50bbf /Lib/secrets.py
parent80d20b918bd8a882043c493a7f958333ecb41727 (diff)
downloadcpython-f53d9f2778a87bdd48eb9030f782a4ebf9e7622f.zip
cpython-f53d9f2778a87bdd48eb9030f782a4ebf9e7622f.tar.gz
cpython-f53d9f2778a87bdd48eb9030f782a4ebf9e7622f.tar.bz2
bpo-32604: Swap threads only if the interpreter is different. (gh-5778)
The CPython runtime assumes that there is a one-to-one relationship (for a given interpreter) between PyThreadState and OS threads. Sending and receiving on a channel in the same interpreter was causing crashes because of this (specifically due to a check in PyThreadState_Swap()). The solution is to not switch threads if the interpreter is the same.
Diffstat (limited to 'Lib/secrets.py')
0 files changed, 0 insertions, 0 deletions