summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.13.1v3.13.1Thomas Wouters2024-12-031-2/+2
|
* [3.13] gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952) ↵Miss Islington (bot)2024-12-031-0/+4
| | | | | | | | | | | (#122984) gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952) As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately. (cherry picked from commit ee1b8ce26e700350e47a5f65201097121c41912e) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-126914: Store the Preallocated Thread State's Pointer in a ↵Eric Snow2024-12-021-0/+2
| | | | | | | PyInterpreterState Field (gh-127114) This approach eliminates the originally reported race. It also gets rid of the deadlock reported in gh-96071, so we can remove the workaround added then. This is mostly a cherry-pick of 1c0a104 (AKA gh-126989). The difference is we add PyInterpreterState.threads_preallocated at the end of PyInterpreterState, instead of adding PyInterpreterState.threads.preallocated. That avoids ABI disruption.
* [3.13] gh-125703: Correctly honour tracemalloc hooks on specialized DECREF ↵Miss Islington (bot)2024-12-021-0/+5
| | | | | | | | paths (GH-125704) (#125705) gh-125703: Correctly honour tracemalloc hooks on specialized DECREF paths (GH-125704) (cherry picked from commit f8ba9fb2ce6690d2dd05b356583e8e4790badad7) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-126688: Reinit import lock after fork (GH-126692) (GH-126765)Miss Islington (bot)2024-11-121-0/+1
| | | | | | | | | The PyMutex implementation supports unlocking after fork because we clear the list of waiters in parking_lot.c. This doesn't work as well for _PyRecursiveMutex because on some systems, such as SerenityOS, the thread id is not preserved across fork(). (cherry picked from commit 5610860840aa71b186fc5639211dd268b817d65f) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-126303: Fix pickling and copying of os.sched_param objects ↵Miss Islington (bot)2024-11-051-0/+1
| | | | | | | (GH-126336) (GH-126423) (cherry picked from commit d3840503b0f590ee574fbdf3c96626ff8b3c45f6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-123930: Better error for "from imports" when script shadows module ↵Shantanu2024-10-241-0/+2
| | | | | | | (GH-123929) (#125937) gh-123930: Better error for "from imports" when script shadows module (#123929) (cherry picked from commit 500f5338a8fe13719478589333fcd296e8e8eb02)
* [3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)Sam Gross2024-10-245-1/+8
| | | | | | When formatting the AST as a string, infinite values are replaced by 1e309, which evaluates to infinity. The initialization of this string replacement was not thread-safe in the free threading build. (cherry picked from commit 427dcf24de4e06d239745d74d08c4b2e541dca5a)
* [3.13] gh-125859: Fix crash when `gc.get_objects` is called during GC ↵Miss Islington (bot)2024-10-241-0/+10
| | | | | | | | | | | | | | (GH-125882) (GH-125921) This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is called during a GC in the free threading build. Switch to `_PyObjectStack` to avoid corrupting the `struct worklist` linked list maintained by the GC. Also, don't return objects that are frozen (`gc.freeze()`) or in the process of being collected to more closely match the behavior of the default build. (cherry picked from commit e545ead66ce725aae6fb0ad5d733abe806c19750) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-125444: Fix illegal instruction for older Arm architectures ↵Miss Islington (bot)2024-10-162-3/+3
| | | | | | | | | | | | | (GH-125574) (GH-125595) On Arm v5 it is not possible to get the thread ID via c13 register hence the illegal instruction. The c13 register started to provide thread ID since Arm v6K architecture variant. Other variants of Arm v6 (T2, Z and base) don’t provide the thread ID via c13. For the sake of simplicity we group v5 and v6 together and consider that instructions for Arm v7 only. (cherry picked from commit feda9aa73ab95d17a291db22c416146f8e70edeb) Co-authored-by: Diego Russo <diego.russo@arm.com>
* Post 3.13.0Thomas Wouters2024-10-071-1/+1
|
* Python 3.13.0v3.13.0Thomas Wouters2024-10-071-3/+3
|
* Post 3.13.0rc3Thomas Wouters2024-10-011-1/+1
|
* Python 3.13.0rc3v3.13.0rc3Thomas Wouters2024-10-011-2/+2
|
* [3.13] GH-124567: Revert the Incremental GC in 3.13 (#124770)T. Wouters2024-09-303-47/+17
| | | | | Revert the incremental GC in 3.13, since it's not clear that without further turning, the benefits outweigh the costs. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.13] gh-124609: Fix _Py_ThreadId for Windows builds using MinGW ↵Miss Islington (bot)2024-09-272-0/+10
| | | | | | | | (GH-124663) (#124698) gh-124609: Fix _Py_ThreadId for Windows builds using MinGW (GH-124663) (cherry picked from commit 0881e2d3b1212d988733f1d3acca4011ce5e6280) Co-authored-by: Tony Roberts <tony@pyxll.com>
* Post 3.13.0rc2Thomas Wouters2024-09-071-1/+1
|
* Python 3.13.0rc2v3.13.0rc2Thomas Wouters2024-09-061-2/+2
|
* [3.13] gh-123747: Avoid static_assert() in internal header files (#123779) ↵Victor Stinner2024-09-062-4/+9
| | | | | | | (#123785) gh-123747: Avoid static_assert() in internal header files (#123779) (cherry picked from commit ef4b69d2becf49daaea21eb04effee81328a0393)
* [3.13] gh-123091: Use _Py_IsImmortalLoose() (#123511) (#123600)Victor Stinner2024-09-022-4/+4
| | | | | | | | gh-123091: Use _Py_IsImmortalLoose() (#123511) Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c and ceval.c. (cherry picked from commit f1a0d96f41db9dfa5d7f0b32e72f6f7301a86f91)
* [3.13] gh-123484: Fix the debug offsets for PyLongObject (GH-123485) (#123499)Miss Islington (bot)2024-08-301-2/+2
|
* [3.13] Add debug offsets for free threaded builds (GH-123041) (#123055)Miss Islington (bot)2024-08-182-3/+82
| | | | | | | | | | | | * Add debug offsets for free threaded builds (GH-123041) (cherry picked from commit d7a3df91505faa56c51d169648253bd0d57ddae2) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> * Refresh ABI file --------- Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-122584: Import mimalloc headers in a C++ context (GH-122587) (#123035)Miss Islington (bot)2024-08-161-0/+9
| | | | | | gh-122584: Import mimalloc headers in a C++ context (GH-122587) (cherry picked from commit 1dad23edbc9db3a13268c1000c8dd428edba29f8) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* [3.13] gh-122581: Avoid data races when collecting parser statistics ↵Miss Islington (bot)2024-08-071-0/+19
| | | | | | | | (GH-122694) (#122733) gh-122581: Avoid data races when collecting parser statistics (GH-122694) (cherry picked from commit ce0d66c8d238c9676c6ecd3f04294a3299e07f74) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.13] gh-120974: Make asyncio `swap_current_task` safe in free-threaded ↵Miss Islington (bot)2024-08-021-1/+6
| | | | | | | | | | build (GH-122317) (#122612) gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (GH-122317) * gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (cherry picked from commit b5e6fb39a246bf7ee470d58632cdf588bb9d0298) Co-authored-by: Sam Gross <colesbury@gmail.com>
* Post 3.13.0rc1Thomas Wouters2024-08-011-1/+1
|
* Python 3.13.0rc1v3.13.0rc1Thomas Wouters2024-07-311-3/+3
|
* [3.13] GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122419)Brandt Bucher2024-07-291-0/+1
| | | (cherry picked from commit 15d4cd096758ca089c6bd6ed808c34cca676d9bb)
* [3.13] gh-121489: Export private _PyBytes_Join() again (GH-122267) (#122287)Miss Islington (bot)2024-07-252-4/+4
| | | | | | gh-121489: Export private _PyBytes_Join() again (GH-122267) (cherry picked from commit aef95eb107fef9355c66461612aedd31265f8c21) Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [3.13] gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (gh-121932)Eric Snow2024-07-241-1/+0
| | | | | | | | | | | | | | | In gh-121602, I applied a fix to a builtin types initialization bug. That fix made sense in the context of some broader future changes, but introduced a little bit of extra complexity. For earlier versions those future changes are not relevant; we can avoid the extra complexity. Thus we can revert that earlier change and replace it with this one, which is more focused and conceptually simpler. This is essentially the implementation of an idea that @markshannon pointed out to me. Note that this change would be much smaller if we didn't have to deal with repr compatibility for builtin types that explicitly inherit tp slots (see expect_manually_inherited()). The alternative is to stop *explicitly* inheriting tp slots in static PyTypeObject values, which is churn that we can do separately.
* [3.13] gh-120974: Make _asyncio._leave_task atomic in the free-threaded ↵Miss Islington (bot)2024-07-231-2/+6
| | | | | | | | | | | | | build (GH-122139) (#122186) gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (GH-122139) * gh-120974: Make _asyncio._leave_task atomic in the free-threaded build Update `_PyDict_DelItemIf` to allow for an argument to be passed to the predicate. (cherry picked from commit a15feded71dd47202db169613effdafc468a8cf3) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-118124: fix assert related C++ checks on Solaris/Illumos ↵Jakub Kulík2024-07-221-5/+6
| | | | | | (GH-121974) (#122108) Fix check for static_assert() for C++ on some platforms.. (cherry picked from commit e88bd96d0d6cf8218c4fca37e1d20399ae676a04)
* [3.13] gh-120973: Fix thread-safety issues with `threading.local` ↵Miss Islington (bot)2024-07-191-0/+8
| | | | | | | | | | | (GH-121655) (#122042) This is a small refactoring to the current design that allows us to avoid manually iterating over threads. This should also fix gh-118490. (cherry picked from commit e059aa6b01030310125477c3ed1da0491020fe10) Co-authored-by: mpage <mpage@meta.com>
* [3.13] gh-121905: Consistently use "floating-point" instead of "floating ↵Serhiy Storchaka2024-07-192-2/+2
| | | | | point" (GH-121907) (GH-122012) (cherry picked from commit 1a0c7b9ba48a2dffb70bb0c7327abae1d3e87356)
* [3.13] gh-118934: Make PyEval_GetLocals return borrowed reference ↵Miss Islington (bot)2024-07-181-0/+4
| | | | | | | | | (GH-119769) (#121869) gh-118934: Make PyEval_GetLocals return borrowed reference (GH-119769) (cherry picked from commit e65cb4c6f01a687f451ad9db1600525e1c5832c4) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* Post 3.13.0b4Thomas Wouters2024-07-181-1/+1
|
* Python 3.13.0b4v3.13.0b4Thomas Wouters2024-07-181-2/+2
|
* [3.13] gh-121621: Move asyncio_running_loop to private struct (GH-121939) ↵Miss Islington (bot)2024-07-182-2/+2
| | | | | | | | | | (#121943) gh-121621: Move asyncio_running_loop to private struct (GH-121939) This avoids changing the ABI and keeps the field in the private struct. (cherry picked from commit 81fd625b5c30cc6f417c93bad404923676ad8ca3) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-121528: Fix _PyObject_Init() assertion for stable ABI (GH-121725) ↵Miss Islington (bot)2024-07-171-2/+26
| | | | | | | | | | (#121936) gh-121528: Fix _PyObject_Init() assertion for stable ABI (GH-121725) Add _Py_IsImmortalLoose() function for assertions. (cherry picked from commit b826e459ca6b640f896c2a9551bb2c78d10f0e2b) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] GH-121583: Remove dependency from pystats.h to internal header file ↵Miss Islington (bot)2024-07-161-5/+5
| | | | | | | (GH-121880) (cherry picked from commit f036a463dbc43d25712183dc6afa4e38c1aaf93d) Co-authored-by: Michael Droettboom <mdboom@gmail.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.13] gh-121621: Move asyncio running loop to thread state (GH-121695) ↵Miss Islington (bot)2024-07-165-7/+2
| | | | | | | | (GH-121864) gh-121621: Move asyncio running loop to thread state (GH-121695) (cherry picked from commit 69c68de43aef03dd52fabd21f99cb3b0f9329201) Co-authored-by: Ken Jin <kenjin@python.org>
* [3.13] gh-121546: Disable contextvar caching on free-threading build ↵Miss Islington (bot)2024-07-151-0/+2
| | | | | | | | (GH-121740) (#121808) gh-121546: Disable contextvar caching on free-threading build (GH-121740) (cherry picked from commit e904300882055bed71cae59f8ca9161066659b7c) Co-authored-by: Ken Jin <kenjin@python.org>
* [3.13] gh-121700 Emscripten trampolines not quite right since GH-106219 ↵Miss Islington (bot)2024-07-141-7/+1
| | | | | | | (GH-121701) (GH-121744) (cherry picked from commit 3086b86cfda829e23a71569908edbfbcdc16327f) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
* [3.13] gh-120642: Move _PyCode_CODE() to the internal C API (GH-121644) ↵Miss Islington (bot)2024-07-132-3/+3
| | | | | | | | | | | (#121729) gh-120642: Move _PyCode_CODE() to the internal C API (GH-121644) Move _PyCode_CODE() and _PyCode_NBYTES() macros to the internal C API since they use _Py_CODEUNIT which is only part of the internal C API. (cherry picked from commit a2bec77d25b11f50362a7117223f6d1d5029a909) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-120198: Stop the world when setting __class__ on free-threaded ↵Ken Jin2024-07-122-8/+2
| | | | | build (#121591) (cherry-picked from commit 3bfc9c8)
* [3.13] gh-117482: Fix Builtin Types Slot Wrappers (gh-121630)Miss Islington (bot)2024-07-111-0/+1
| | | | | | | When builtin static types are initialized for a subinterpreter, various "tp" slots have already been inherited (for the main interpreter). This was interfering with the logic in add_operators() (in Objects/typeobject.c), causing a wrapper to get created when it shouldn't. This change fixes that by preserving the original data from the static type struct and checking that. (cherry picked from commit 5250a031332eb9499d5fc190d7287642e5a144b9, AKA gh-121602) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-89364: Export PySignal_SetWakeupFd() function (GH-121537) (#121582)Miss Islington (bot)2024-07-101-1/+1
| | | | | | | | | gh-89364: Export PySignal_SetWakeupFd() function (GH-121537) Export the PySignal_SetWakeupFd() function. Previously, the function was documented but it couldn't be used in 3rd party code. (cherry picked from commit ca0fb3423c13822d909d75eb616ecf1965e619ae) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-121368: Fix seq lock memory ordering in _PyType_Lookup (GH-121388) ↵Miss Islington (bot)2024-07-085-4/+30
| | | | | | | | | | | | | | (#121505) The `_PySeqLock_EndRead` function needs an acquire fence to ensure that the load of the sequence happens after any loads within the read side critical section. The missing fence can trigger bugs on macOS arm64. Additionally, we need a release fence in `_PySeqLock_LockWrite` to ensure that the sequence update is visible before any modifications to the cache entry. (cherry picked from commit 1d3cf79a501a93a7a488fc75d4db3060c5ee7d1a) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimalloc ↵Miss Islington (bot)2024-07-081-2/+6
| | | | | | | (gh-121488) (#121504) (cherry picked from commit 31873bea471020ca5deaf735d9acb0f1abeb1d3c) Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [3.13] gh-106597: Remove unnecessary CFrame offsets (GH-121369) (#121370)Miss Islington (bot)2024-07-041-7/+0
| | | | | | gh-106597: Remove unnecessary CFrame offsets (GH-121369) (cherry picked from commit f5c8d67de6c68bea2860d5d96af747c5e95dbf22) Co-authored-by: Gabriele N. Tornetta <P403n1x87@users.noreply.github.com>