summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* GH-121634: have `wasi.py` accept the host target triple as an argument ↵Brett Cannon2024-08-151-6/+12
| | | | (GH-123030)
* gh-112301: Add warning count to warning check tooling (#122711)Nate Ohlson2024-08-143-14/+44
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-113464: Speed up JIT builds (GH-122839)Brandt Bucher2024-08-142-5/+19
|
* GH-120024: Remove `CHECK_EVAL_BREAKER` macro. (GH-122968)Mark Shannon2024-08-144-35/+1
| | | | | * Factor some instructions into micro-ops to isolate CHECK_EVAL_BREAKER for escape analysis * Eliminate CHECK_EVAL_BREAKER macro
* GH-121723: Skip test_config_queue_handler_multiprocessing_context in ↵Bénédikt Tran2024-08-131-0/+1
| | | | emulated JIT CI (#122969)
* gh-99108: Add HACL* Blake2 implementation to hashlib (GH-119316)Jonathan Protzenko2024-08-132-3/+3
| | | | | | | This replaces the existing hashlib Blake2 module with a single implementation that uses HACL\*'s Blake2b/Blake2s implementations. We added support for all the modes exposed by the Python API, including tree hashing, leaf nodes, and so on. We ported and merged all of these changes upstream in HACL\*, added test vectors based on Python's existing implementation, and exposed everything needed for hashlib. This was joint work done with @R1kM. See the PR for much discussion and benchmarking details. TL;DR: On many systems, 8-50% faster (!) than `libb2`, on some systems it appeared 10-20% slower than `libb2`.
* gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952)Eric Snow2024-08-131-0/+9
| | | 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.
* GH-122390: Replace `_Py_GetbaseOpcode` with `_Py_GetBaseCodeUnit` (GH-122942)Mark Shannon2024-08-132-0/+2
|
* gh-117139: Replace _PyList_FromArraySteal with stack ref variant (#122830)Sam Gross2024-08-121-1/+1
| | | | | | | This replaces `_PyList_FromArraySteal` with `_PyList_FromStackRefSteal`. It's functionally equivalent, but takes a `_PyStackRef` array instead of an array of `PyObject` pointers. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-122688: Fix support of var-positional parameter in Argument Clinic ↵Serhiy Storchaka2024-08-092-10/+12
| | | | | | | | | (GH-122689) * Parameters after the var-positional parameter are now keyword-only instead of positional-or-keyword. * Correctly calculate min_kw_only. * Raise errors for invalid combinations of the var-positional parameter with "*", "/" and deprecation markers.
* GH-120024: Tidy up case generator code a bit. (GH-122780)Mark Shannon2024-08-0810-100/+175
|
* gh-118926: Spill deferred references to stack in cases generator (#122748)Sam Gross2024-08-076-25/+132
| | | | | | | This automatically spills the results from `_PyStackRef_FromPyObjectNew` to the in-memory stack so that the deferred references are visible to the GC before we make any possibly escaping call. Co-authored-by: Ken Jin <kenjin@python.org>
* Bump types-setuptools to 71.1.0.20240726 in /Tools (#122551)dependabot[bot]2024-08-071-1/+1
|
* gh-112301: Add macOS warning tracking tooling (#122211)Nate Ohlson2024-08-062-53/+111
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-122686: bump hypothesis from 6.104.2 to 6.108.10 in Tools (#122729)Sergey B Kirpichev2024-08-061-4/+1
| | | This drops attrs pinning.
* GH-120024: Refactor code generators to uses classes for emitting code. ↵Mark Shannon2024-08-064-274/+272
| | | | (GH-122730)
* Fix syntax in generate_re_casefix.py (#122699)Jelle Zijlstra2024-08-061-2/+2
| | | This was broken in gh-97963.
* gh-122686: Pin attrs package (for Hypothesis workflow) (#122687)Sergey B Kirpichev2024-08-061-0/+3
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-118943: Handle races when moving jit_stencils.h (GH-120690)Miro Hrončok2024-08-051-1/+6
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* build(deps-dev): bump mypy from 1.10.1 to 1.11.1 in /Tools (#122550)dependabot[bot]2024-08-052-2/+4
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
* GH-109408: Stop running patchcheck in CI (#109895)Adam Turner2024-08-031-108/+12
|
* GH-122155: Track local variables between pops and pushes in cases generator ↵Mark Shannon2024-08-017-102/+213
| | | | (GH-122286)
* gh-112301: Add argument aliases and tee compiler output for check warnings ↵Nate Ohlson2024-07-301-1/+4
| | | | | (GH-122465) Also remove superfluous shebang from the warning check script
* gh-117657: Avoid race in `PAUSE_ADAPTIVE_COUNTER` in free-threaded build ↵Sam Gross2024-07-301-1/+0
| | | | | | | (#122190) The adaptive counter doesn't do anything currently in the free-threaded build and TSan reports a data race due to concurrent modifications to the counter.
* gh-122044: Don't error during gitignore filtering with no files (#122045)Seth Michael Larson2024-07-271-0/+4
|
* gh-112301: Compiler warning management tooling (#121730)Nate Ohlson2024-07-272-0/+198
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-122201: Lock mutex when setting handling_thread to NULL (#122204)Sam Gross2024-07-261-1/+0
| | | | | In the free-threaded build, we need to lock pending->mutex when clearing the handling_thread in order not to race with a concurrent make_pending_calls in the same interpreter.
* GH-121131: Clean up and fix some instrumented instructions. (GH-121132)Mark Shannon2024-07-263-8/+5
| | | | * Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions
* gh-122270: Fix typos in the Py_DEBUG macro name (GH-122271)Serhiy Storchaka2024-07-251-3/+3
|
* GH-122155: Fix cases generator to correctly compute 'peek' offset for error ↵Mark Shannon2024-07-233-6/+17
| | | | handling (GH-122158)
* GH-121970: Rewrite the C-API annotations extension (#121985)Adam Turner2024-07-191-8/+15
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* GH-121784: Generate an error during code gen if a variable is marked ↵Mark Shannon2024-07-185-57/+112
| | | | | | | | | | | | `unused`, but is used and thus cached in a prior uop. (#121788) * Reject uop definitions that declare values as 'unused' that are already cached by prior uops * Track which variables are defined and only load from memory when needed * Support explicit `flush` in macro definitions. * Make sure stack is flushed in where needed.
* Add note about PYTHON_JIT environment variable to JIT README (GH-121635)Savannah Ostrowski2024-07-171-2/+6
|
* GH-120371: Add WASI SDK 22 support (GH-121870)Brett Cannon2024-07-161-0/+8
| | | Required disabling stub functions now provided by wasi-libc.
* gh-117657: Remove TSAN suppressions for _abc.c (#121508)Sam Gross2024-07-101-2/+0
| | | | The functions look thread-safe and I haven't seen any warnings issued when running the tests locally.
* gh-117657: Fix TSan race in _PyDict_CheckConsistency (#121551)Sam Gross2024-07-101-8/+0
| | | | The only remaining race in dictobject.c was in _PyDict_CheckConsistency when the dictionary has shared keys.
* GH-121521: Detect when wasmtime is not installed in `Tools/wasm/wasi.py` ↵Brett Cannon2024-07-091-6/+18
| | | | (GH-121522)
* gh-117657: Fix TSAN races in setobject.c (#121511)Sam Gross2024-07-091-3/+0
| | | | | The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock.
* GH-118926: Better distinguish between pointer and arrays in interpreter ↵Mark Shannon2024-07-096-18/+30
| | | | generator (GH-121496)
* GH-119726: Emit AArch64 trampolines out-of-line (GH-121280)Diego Russo2024-07-031-8/+6
|
* build(deps): bump hypothesis from 6.100.2 to 6.104.2 in /Tools (#121218)dependabot[bot]2024-07-031-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.100.2 to 6.104.2. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.100.2...hypothesis-python-6.104.2) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-117139: Add _PyTuple_FromStackRefSteal and use it (#121244)Sam Gross2024-07-021-0/+1
| | | Avoids the extra conversion from stack refs to PyObjects.
* GH-119726: Use LDR for AArch64 trampolines (GH-121001)Diego Russo2024-07-011-22/+9
|
* GH-116017: Get rid of _COLD_EXITs (GH-120960)Brandt Bucher2024-07-013-13/+0
|
* gh-117657: Fix data races reported by TSAN in some set methods (#120914)AN Long2024-07-011-1/+0
| | | | | | Refactor the fast Unicode hash check into `_PyObject_HashFast` and use relaxed atomic loads in the free-threaded build. After this change, the TSAN doesn't report data races for this method.
* gh-117657: Use critical section to make _socket.socket.close thread safe ↵AN Long2024-07-011-1/+0
| | | | (GH-120490)
* build(deps-dev): bump types-setuptools from 70.0.0.20240524 to ↵dependabot[bot]2024-07-011-1/+1
| | | | | | 70.1.0.20240627 in /Tools (#121217) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump mypy from 1.10.0 to 1.10.1 in /Tools (#121216)dependabot[bot]2024-07-011-1/+1
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump types-psutil from 5.9.5.20240516 to 6.0.0.20240621 in ↵dependabot[bot]2024-07-011-1/+1
| | | | | | /Tools (#121215) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-61103: Support double complex (_Complex) type in ctypes (#120894)Sergey B Kirpichev2024-07-011-0/+11
| | | | | | | | | | | | | | | | | | Example: ```pycon >>> import ctypes >>> ctypes.__STDC_IEC_559_COMPLEX__ 1 >>> libm = ctypes.CDLL('libm.so.6') >>> libm.clog.argtypes = [ctypes.c_double_complex] >>> libm.clog.restype = ctypes.c_double_complex >>> libm.clog(1+1j) (0.34657359027997264+0.7853981633974483j) ``` Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>