mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
|
Some checks are pending
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
[3.14] gh-137109: refactor warning about threads when forking (GH-141438) (GH-141614) This splits the OS API specific functionality to get the number of threads out from the fallback Python method and warning raising code itself. This way the OS APIs can be queried before we've run `os.register_at_fork(after_in_parent=...)` registered functions which themselves may (re)start threads that would otherwise be detected. This is best effort. If the OS APIs are either unavailable or fail, the warning generating code still falls back to looking at the Python threading state after the CPython interpreter world has been restarted and the after_in_parent calls have been made. The common case for most Linux and macOS environments should work today. This also lines up with the existing TODO refactoring, we may choose to expose this API to get the number of OS threads in the `os` module in the future. Note: This is a simplified backport that maintains the void return type for warn_about_fork_with_threads() and keeps PyErr_Clear() in the warning path, as the error handling changes from |
||
|---|---|---|
| .. | ||
| _blake2 | ||
| _ctypes | ||
| _decimal | ||
| _hacl | ||
| _io | ||
| _multiprocessing | ||
| _sqlite | ||
| _sre | ||
| _ssl | ||
| _testcapi | ||
| _testinternalcapi | ||
| _testlimitedcapi | ||
| _xxtestfuzz | ||
| cjkcodecs | ||
| clinic | ||
| expat | ||
| _abc.c | ||
| _asynciomodule.c | ||
| _bisectmodule.c | ||
| _bz2module.c | ||
| _codecsmodule.c | ||
| _collectionsmodule.c | ||
| _contextvarsmodule.c | ||
| _csv.c | ||
| _curses_panel.c | ||
| _cursesmodule.c | ||
| _datetimemodule.c | ||
| _dbmmodule.c | ||
| _elementtree.c | ||
| _functoolsmodule.c | ||
| _gdbmmodule.c | ||
| _hashopenssl.c | ||
| _heapqmodule.c | ||
| _interpchannelsmodule.c | ||
| _interpqueuesmodule.c | ||
| _interpreters_common.h | ||
| _interpretersmodule.c | ||
| _json.c | ||
| _localemodule.c | ||
| _lsprof.c | ||
| _lzmamodule.c | ||
| _math.h | ||
| _opcode.c | ||
| _operator.c | ||
| _pickle.c | ||
| _posixsubprocess.c | ||
| _queuemodule.c | ||
| _randommodule.c | ||
| _scproxy.c | ||
| _ssl.c | ||
| _ssl.h | ||
| _ssl_data_31.h | ||
| _ssl_data_111.h | ||
| _ssl_data_300.h | ||
| _stat.c | ||
| _statisticsmodule.c | ||
| _struct.c | ||
| _suggestions.c | ||
| _sysconfig.c | ||
| _testbuffer.c | ||
| _testcapi_feature_macros.inc | ||
| _testcapimodule.c | ||
| _testclinic.c | ||
| _testclinic_limited.c | ||
| _testexternalinspection.c | ||
| _testimportmultiple.c | ||
| _testinternalcapi.c | ||
| _testlimitedcapi.c | ||
| _testmultiphase.c | ||
| _testsinglephase.c | ||
| _threadmodule.c | ||
| _tkinter.c | ||
| _tracemalloc.c | ||
| _typingmodule.c | ||
| _uuidmodule.c | ||
| _weakref.c | ||
| _winapi.c | ||
| _zoneinfo.c | ||
| addrinfo.h | ||
| arraymodule.c | ||
| atexitmodule.c | ||
| binascii.c | ||
| cmathmodule.c | ||
| config.c.in | ||
| errnomodule.c | ||
| faulthandler.c | ||
| fcntlmodule.c | ||
| gc_weakref.txt | ||
| gcmodule.c | ||
| getaddrinfo.c | ||
| getbuildinfo.c | ||
| getnameinfo.c | ||
| getpath.c | ||
| getpath.py | ||
| getpath_noop.c | ||
| grpmodule.c | ||
| hashlib.h | ||
| itertoolsmodule.c | ||
| ld_so_aix.in | ||
| main.c | ||
| makesetup | ||
| makexp_aix | ||
| mathmodule.c | ||
| md5module.c | ||
| mmapmodule.c | ||
| overlapped.c | ||
| posixmodule.c | ||
| posixmodule.h | ||
| pwdmodule.c | ||
| pyexpat.c | ||
| readline.c | ||
| README | ||
| resource.c | ||
| rotatingtree.c | ||
| rotatingtree.h | ||
| selectmodule.c | ||
| Setup | ||
| Setup.bootstrap.in | ||
| Setup.stdlib.in | ||
| sha1module.c | ||
| sha2module.c | ||
| sha3module.c | ||
| signalmodule.c | ||
| socketmodule.c | ||
| socketmodule.h | ||
| symtablemodule.c | ||
| syslogmodule.c | ||
| termios.c | ||
| timemodule.c | ||
| tkappinit.c | ||
| tkinter.h | ||
| unicodedata.c | ||
| unicodedata_db.h | ||
| unicodename_db.h | ||
| winreparse.h | ||
| xxlimited.c | ||
| xxlimited_35.c | ||
| xxmodule.c | ||
| xxsubtype.c | ||
| zlibmodule.c | ||
Source files for standard library extension modules, and former extension modules that are now builtin modules.