mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
26c6e3d7e3
Avoid racing with the owning thread's refcount operations when
immortalizing an interned string: if we don't own it and its refcount
isn't merged, intern a copy we own instead. Use atomic stores in
_Py_SetImmortalUntracked so concurrent atomic reads are race-free.
(cherry picked from commit 4629c2215a)
Source files for various builtin objects