mirror of https://github.com/python/cpython
b2c3b70c71
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 | ||
README.txt | ||
parts.h | ||
pytime.c | ||
set.c | ||
test_critical_sections.c | ||
test_lock.c |
README.txt
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.