mirror of https://github.com/python/cpython
905288824d
gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (GH-123690)
Use a `PyMutex` to avoid the race in mutex initialization. Use relaxed
atomics to avoid the data race on reading `_PyOS_ReadlineTState` when
checking for re-entrant calls.
(cherry picked from commit
|
||
---|---|---|
.. | ||
lexer | ||
tokenizer | ||
Python.asdl | ||
action_helpers.c | ||
asdl.py | ||
asdl_c.py | ||
myreadline.c | ||
parser.c | ||
peg_api.c | ||
pegen.c | ||
pegen.h | ||
pegen_errors.c | ||
string_parser.c | ||
string_parser.h | ||
token.c |