mirror of
https://github.com/python/cpython.git
synced 2025-10-24 23:46:23 +00:00
Avoid detaching thread state when stopping the world. When re-attaching the thread state, the thread would attempt to resume the top-most critical section, which might now be held by a thread paused for our stop-the-world request. |
||
|---|---|---|
| .. | ||
| clinic | ||
| parts.h | ||
| pytime.c | ||
| README.txt | ||
| set.c | ||
| test_critical_sections.c | ||
| test_lock.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.