diff options
author | Sam Gross <colesbury@gmail.com> | 2024-10-13 20:17:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 20:17:51 (GMT) |
commit | f1d33dbddd3496b062e1fbe024fb6d7b023a35f5 (patch) | |
tree | 0cbdb49dc8a990a0c656e61d338906200fa19811 /Python/bytecodes.c | |
parent | cb8e5995d89d9b90e83cf43310ec50e177484e70 (diff) | |
download | cpython-f1d33dbddd3496b062e1fbe024fb6d7b023a35f5.zip cpython-f1d33dbddd3496b062e1fbe024fb6d7b023a35f5.tar.gz cpython-f1d33dbddd3496b062e1fbe024fb6d7b023a35f5.tar.bz2 |
gh-125243: Fix ZoneInfo data race in free threading build (#125281)
Lock `ZoneInfoType` to protect accesses to `ZONEINFO_STRONG_CACHE`.
Refactor the `tp_new` handler to use Argument Clinic so that we can just
use `@critical_section` annotations on the relevant functions.
Also use `PyDict_SetDefaultRef` instead of `PyDict_SetDefault` when
inserting into the `TIMEDELTA_CACHE`.
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions