mirror of
https://github.com/python/cpython.git
synced 2025-10-24 10:23:58 +00:00
Most mutable data is protected by a striped lock that is keyed on the referenced object's address. The weakref's hash is protected using the weakref's per-object lock. Note that this only affects free-threaded builds. Apart from some minor refactoring, the added code is all either gated by `ifdef`s or is a no-op (e.g. `Py_BEGIN_CRITICAL_SECTION`). |
||
|---|---|---|
| .. | ||
| clinic | ||
| cert.c | ||
| debughelpers.c | ||
| misc.c | ||