mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
Revert commits:
gh-151593: Fix dead lock in PyDict insert_split_key() (#152200)
gh-150490: Raise PyType_Modified for insertion into split dictionary (#150489)
For gh-150489, it violates locking discipline and results in deadlocks,
gh-151593 is an example of it being hit in CI. The attempted fix
gh-152200 avoids the deadlock but introduces a data-race. The race
window is small but can be triggered with pure Python code.
|
||
|---|---|---|
| .. | ||
| clinic | ||
| complex.c | ||
| interpreter.c | ||
| parts.h | ||
| pytime.c | ||
| README.txt | ||
| set.c | ||
| test_cases.c.h | ||
| test_critical_sections.c | ||
| test_lock.c | ||
| test_targets.h | ||
| testbytecodes.c | ||
| tuple.c | ||
Tests in this directory are compiled into the _testinternalcapi extension. The main file for the extension is Modules/_testinternalcapimodule.c, which calls `_PyTestInternalCapi_Init_*` from these functions. See Modules/_testcapi/README.txt for guideline when writing C test code.