Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-122417: Implement per-thread heap type refcounts (#122418) | Sam Gross | 2024-08-06 | 6 | -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 Nikolaou | 2024-08-06 | 1 | -0/+19 |
| | |||||
* | GH-117224: Move the body of a few large-ish micro-ops into helper functions ↵ | Mark Shannon | 2024-08-02 | 1 | -0/+4 |
| | | | | (GH-122601) | ||||
* | gh-120974: Make asyncio `swap_current_task` safe in free-threaded build ↵ | Sam Gross | 2024-08-02 | 1 | -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 Zijlstra | 2024-08-01 | 1 | -3/+0 |
| | |||||
* | GH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (GH-120793) | Mark Shannon | 2024-08-01 | 4 | -147/+167 |
| | |||||
* | GH-122155: Track local variables between pops and pushes in cases generator ↵ | Mark Shannon | 2024-08-01 | 1 | -1/+1 |
| | | | | (GH-122286) | ||||
* | Fix typos in docs, error messages and comments (#122502) | jianghuyiyuan | 2024-08-01 | 1 | -1/+1 |
| | | | Signed-off-by: jianghuyiyuan <shuangcui@live.com> | ||||
* | gh-122188: Move magic number to its own file (#122243) | Michael Droettboom | 2024-07-30 | 1 | -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 Bucher | 2024-07-29 | 1 | -0/+1 |
| | |||||
* | gh-120593: Make _PyLong_CompactValue() parameter const again (#122367) | Victor Stinner | 2024-07-28 | 1 | -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 Zijlstra | 2024-07-27 | 2 | -0/+2 |
| | |||||
* | GH-122294: Burn in the addresses of side exits (GH-122295) | Brandt Bucher | 2024-07-26 | 1 | -2/+2 |
| | |||||
* | GH-122029: Break INSTRUMENTED_CALL into micro-ops, so that its behavior is ↵ | Mark Shannon | 2024-07-26 | 4 | -80/+85 |
| | | | | consistent with CALL (GH-122177) | ||||
* | GH-121131: Clean up and fix some instrumented instructions. (GH-121132) | Mark Shannon | 2024-07-26 | 3 | -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 Bucher | 2024-07-25 | 3 | -148/+154 |
| | |||||
* | GH-118093: Add tier two support for LOAD_ATTR_PROPERTY (GH-122283) | Brandt Bucher | 2024-07-25 | 3 | -51/+56 |
| | |||||
* | GH-122034: Add StackRef variants of type checks to reduce the number of ↵ | Mark Shannon | 2024-07-25 | 1 | -0/+33 |
| | | | | PyStackRef_AsPyObjectBorrow calls (GH-122037) | ||||
* | gh-121489: Export private _PyBytes_Join() again (#122267) | Marc Mueller | 2024-07-25 | 2 | -4/+4 |
| | |||||
* | GH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164) | Mark Shannon | 2024-07-25 | 4 | -88/+75 |
| | |||||
* | GH-118093: Remove invalidated executors from side exits (GH-121885) | Brandt Bucher | 2024-07-24 | 1 | -1/+1 |
| | |||||
* | gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (#122139) | Sam Gross | 2024-07-23 | 1 | -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 Storchaka | 2024-07-23 | 1 | -1/+2 |
| | | | This allows to identify the source of the error. | ||||
* | gh-120974: Use common freelist code in asyncio (#122132) | Sam Gross | 2024-07-23 | 1 | -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 Gross | 2024-07-22 | 11 | -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ík | 2024-07-21 | 1 | -5/+5 |
| | | | Fix check for static_assert() for C++ on some platforms. | ||||
* | gh-120973: Fix thread-safety issues with `threading.local` (#121655) | mpage | 2024-07-19 | 1 | -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 Storchaka | 2024-07-19 | 2 | -2/+2 |
| | | | | (GH-121907) | ||||
* | GH-118093: Add tier two support to several instructions (GH-121884) | Brandt Bucher | 2024-07-18 | 4 | -26/+61 |
| | |||||
* | GH-120024: Use pointer for stack pointer (GH-121923) | Mark Shannon | 2024-07-18 | 1 | -20/+25 |
| | |||||
* | gh-121621: Move asyncio_running_loop to private struct (#121939) | Sam Gross | 2024-07-17 | 2 | -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 Stinner | 2024-07-17 | 1 | -2/+26 |
| | | | Add _Py_IsImmortalLoose() function for assertions. | ||||
* | GH-121583: Remove dependency from pystats.h to internal header file (GH-121587) | Michael Droettboom | 2024-07-16 | 1 | -5/+5 |
| | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com> | ||||
* | gh-118934: Make PyEval_GetLocals return borrowed reference (#119769) | Tian Gao | 2024-07-16 | 1 | -0/+4 |
| | | | Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com> | ||||
* | gh-121621: Move asyncio running loop to thread state (GH-121695) | Ken Jin | 2024-07-16 | 5 | -7/+2 |
| | |||||
* | gh-121546: Disable contextvar caching on free-threading build (GH-121740) | Ken Jin | 2024-07-15 | 1 | -0/+2 |
| | |||||
* | gh-121700 Emscripten trampolines not quite right since #106219 (GH-121701) | Hood Chatham | 2024-07-14 | 1 | -7/+1 |
| | |||||
* | gh-120642: Move _PyCode_CODE() to the internal C API (#121644) | Victor Stinner | 2024-07-13 | 2 | -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 Snow | 2024-07-11 | 1 | -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 Katriel | 2024-07-10 | 1 | -9/+0 |
| | | | Co-authored-by: Erlend E. Aasland <erlend@python.org> | ||||
* | gh-119786: fix broken links in docs and comment (#121601) | Irit Katriel | 2024-07-10 | 1 | -1/+1 |
| | |||||
* | gh-120198: Stop the world when setting __class__ on free-threaded build ↵ | Ken Jin | 2024-07-10 | 2 | -8/+2 |
| | | | | (GH-120672) | ||||
* | gh-89364: Export PySignal_SetWakeupFd() function (#121537) | Victor Stinner | 2024-07-10 | 1 | -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 Gross | 2024-07-08 | 5 | -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 Mueller | 2024-07-08 | 1 | -2/+6 |
| | |||||
* | gh-106597: Remove unnecessary CFrame offsets (#121369) | Gabriele N. Tornetta | 2024-07-04 | 1 | -7/+0 |
| | |||||
* | gh-121352: use _Py_SourceLocation in symtable (#121353) | Irit Katriel | 2024-07-04 | 1 | -6/+1 |
| | |||||
* | gh-112136: Restore removed _PyArg_Parser (#121262) | Victor Stinner | 2024-07-03 | 4 | -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 Jin | 2024-07-03 | 1 | -58/+30 |
| | | | Macro-ify most stackref functions for MSVC | ||||
* | gh-106597: Add more offsets to _Py_DebugOffsets (#121311) | Gabriele N. Tornetta | 2024-07-03 | 2 | -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). |