summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* gh-122417: Implement per-thread heap type refcounts (#122418)Sam Gross2024-08-066-5/+161
| | | | | | | The free-threaded build partially stores heap type reference counts in distributed manner in per-thread arrays. This avoids reference count contention when creating or destroying instances. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-122581: Avoid data races when collecting parser statistics (#122694)Lysandros Nikolaou2024-08-061-0/+19
|
* GH-117224: Move the body of a few large-ish micro-ops into helper functions ↵Mark Shannon2024-08-021-0/+4
| | | | (GH-122601)
* gh-120974: Make asyncio `swap_current_task` safe in free-threaded build ↵Sam Gross2024-08-021-1/+6
| | | | | (#122317) * gh-120974: Make asyncio `swap_current_task` safe in free-threaded build
* gh-122562: Remove ste_free and ste_child_free from symtable (#122563)Jelle Zijlstra2024-08-011-3/+0
|
* GH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (GH-120793)Mark Shannon2024-08-014-147/+167
|
* GH-122155: Track local variables between pops and pushes in cases generator ↵Mark Shannon2024-08-011-1/+1
| | | | (GH-122286)
* Fix typos in docs, error messages and comments (#122502)jianghuyiyuan2024-08-011-1/+1
| | | Signed-off-by: jianghuyiyuan <shuangcui@live.com>
* gh-122188: Move magic number to its own file (#122243)Michael Droettboom2024-07-301-0/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-122188: Move magic number to its own file * Add versionadded directive * Do work in C * Integrate launcher.c * Make _pyc_magic_number private * Remove metadata * Move sys.implementation -> _imp * Modernize comment * Move _RAW_MAGIC_NUMBER to the C side as well * _pyc_magic_number -> pyc_magic_number * Remove unused import * Update docs * Apply suggestions from code review Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> * Fix typo in tests --------- Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122413)Brandt Bucher2024-07-291-0/+1
|
* gh-120593: Make _PyLong_CompactValue() parameter const again (#122367)Victor Stinner2024-07-281-4/+4
| | | | | Change _PyLong_IsCompact() and _PyLong_CompactValue() parameter type from 'PyObject*' to 'const PyObject*'. Avoid the Py_TYPE() macro which does not support const parameter.
* gh-119180: Add evaluate functions for type params and type aliases (#122212)Jelle Zijlstra2024-07-272-0/+2
|
* GH-122294: Burn in the addresses of side exits (GH-122295)Brandt Bucher2024-07-261-2/+2
|
* GH-122029: Break INSTRUMENTED_CALL into micro-ops, so that its behavior is ↵Mark Shannon2024-07-264-80/+85
| | | | consistent with CALL (GH-122177)
* GH-121131: Clean up and fix some instrumented instructions. (GH-121132)Mark Shannon2024-07-263-20/+23
| | | | * Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions
* GH-118093: Add tier two support for BINARY_OP_INPLACE_ADD_UNICODE (GH-122253)Brandt Bucher2024-07-253-148/+154
|
* GH-118093: Add tier two support for LOAD_ATTR_PROPERTY (GH-122283)Brandt Bucher2024-07-253-51/+56
|
* GH-122034: Add StackRef variants of type checks to reduce the number of ↵Mark Shannon2024-07-251-0/+33
| | | | PyStackRef_AsPyObjectBorrow calls (GH-122037)
* gh-121489: Export private _PyBytes_Join() again (#122267)Marc Mueller2024-07-252-4/+4
|
* GH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164)Mark Shannon2024-07-254-88/+75
|
* GH-118093: Remove invalidated executors from side exits (GH-121885)Brandt Bucher2024-07-241-1/+1
|
* gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (#122139)Sam Gross2024-07-231-2/+6
| | | | | | | * 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.
* gh-122163: Add notes for JSON serialization errors (GH-122165)Serhiy Storchaka2024-07-231-1/+2
| | | This allows to identify the source of the error.
* gh-120974: Use common freelist code in asyncio (#122132)Sam Gross2024-07-231-0/+2
| | | | | This refactors asyncio to use the common freelist helper functions and macros. As a side effect, the freelist for _asyncio.Future is now re-enabled in the free-threaded build.
* gh-100240: Use a consistent implementation for freelists (#121934)Sam Gross2024-07-2211-160/+159
| | | | | | | | This combines and updates our freelist handling to use a consistent implementation. Objects in the freelist are linked together using the first word of memory block. If configured with freelists disabled, these operations are essentially no-ops.
* gh-118124: fix assert related C++ checks on Solaris/Illumos (#121974)Jakub Kulík2024-07-211-5/+5
| | | Fix check for static_assert() for C++ on some platforms.
* gh-120973: Fix thread-safety issues with `threading.local` (#121655)mpage2024-07-191-0/+8
| | | | | | This is a small refactoring to the current design that allows us to avoid manually iterating over threads. This should also fix gh-118490.
* gh-121905: Consistently use "floating-point" instead of "floating point" ↵Serhiy Storchaka2024-07-192-2/+2
| | | | (GH-121907)
* GH-118093: Add tier two support to several instructions (GH-121884)Brandt Bucher2024-07-184-26/+61
|
* GH-120024: Use pointer for stack pointer (GH-121923)Mark Shannon2024-07-181-20/+25
|
* gh-121621: Move asyncio_running_loop to private struct (#121939)Sam Gross2024-07-172-2/+2
| | | | This avoids changing the ABI and keeps the field in the private struct.
* gh-121528: Fix _PyObject_Init() assertion for stable ABI (#121725)Victor Stinner2024-07-171-2/+26
| | | Add _Py_IsImmortalLoose() function for assertions.
* GH-121583: Remove dependency from pystats.h to internal header file (GH-121587)Michael Droettboom2024-07-161-5/+5
| | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-118934: Make PyEval_GetLocals return borrowed reference (#119769)Tian Gao2024-07-161-0/+4
| | | Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* gh-121621: Move asyncio running loop to thread state (GH-121695)Ken Jin2024-07-165-7/+2
|
* gh-121546: Disable contextvar caching on free-threading build (GH-121740)Ken Jin2024-07-151-0/+2
|
* gh-121700 Emscripten trampolines not quite right since #106219 (GH-121701)Hood Chatham2024-07-141-7/+1
|
* gh-120642: Move _PyCode_CODE() to the internal C API (#121644)Victor Stinner2024-07-132-3/+3
| | | | 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.
* gh-117482: Fix Builtin Types Slot Wrappers (gh-121602)Eric Snow2024-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.
* gh-121554: remove unnecessary internal functions in compile.c (#121555)Irit Katriel2024-07-101-9/+0
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-119786: fix broken links in docs and comment (#121601)Irit Katriel2024-07-101-1/+1
|
* gh-120198: Stop the world when setting __class__ on free-threaded build ↵Ken Jin2024-07-102-8/+2
| | | | (GH-120672)
* gh-89364: Export PySignal_SetWakeupFd() function (#121537)Victor Stinner2024-07-101-1/+1
| | | | Export the PySignal_SetWakeupFd() function. Previously, the function was documented but it couldn't be used in 3rd party code.
* gh-121368: Fix seq lock memory ordering in _PyType_Lookup (#121388)Sam Gross2024-07-085-4/+30
| | | | | | | | | 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.
* gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimalloc (gh-121488)Marc Mueller2024-07-081-2/+6
|
* gh-106597: Remove unnecessary CFrame offsets (#121369)Gabriele N. Tornetta2024-07-041-7/+0
|
* gh-121352: use _Py_SourceLocation in symtable (#121353)Irit Katriel2024-07-041-6/+1
|
* gh-112136: Restore removed _PyArg_Parser (#121262)Victor Stinner2024-07-034-24/+32
| | | | | | | Restore the private _PyArg_Parser structure and the private _PyArg_ParseTupleAndKeywordsFast() function, previously removed in Python 3.13 alpha 1. Recreate Include/cpython/modsupport.h header file.
* gh-121263: Macro-ify most stackref functions for MSVC (GH-121270)Ken Jin2024-07-031-58/+30
| | | Macro-ify most stackref functions for MSVC
* gh-106597: Add more offsets to _Py_DebugOffsets (#121311)Gabriele N. Tornetta2024-07-032-0/+18
| | | | | | Add more offsets to _Py_DebugOffsets We add a few more offsets that are required by some out-of-process tools, such as [Austin](https://github.com/p403n1x87/austin).