summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_concurrent_futures/executor.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-124694: Add concurrent.futures.InterpreterPoolExecutor (gh-124548)Eric Snow2024-10-161-1/+3
| | | | | | | | | | | | This is an implementation of InterpreterPoolExecutor that builds on ThreadPoolExecutor. (Note that this is not tied to PEP 734, which is strictly about adding a new stdlib module.) Possible future improvements: * support passing a script for the initializer or to submit() * support passing (most) arbitrary functions without pickling * support passing closures * optionally exec functions against __main__ instead of the their original module
* gh-120417: Remove unused imports in tests (part 1) (#120629)Victor Stinner2024-06-171-1/+0
|
* gh-117688: Fix deadlock in test_no_stale_references with GIL disabled (#117720)Sam Gross2024-04-151-11/+21
| | | | | | | Check `my_object_collected.wait()` in a loop to give the main thread a chance to merge the reference count fields. Additionally, call `my_object_collected.set()` in a background thread to avoid deadlocking when the destructor is called asynchronously via the eval breaker within the body of of `my_object_collected.wait()`.
* gh-110481: Implement inter-thread queue for biased reference counting (#114824)Sam Gross2024-02-091-2/+15
| | | | | | | | | Biased reference counting maintains two refcount fields in each object: `ob_ref_local` and `ob_ref_shared`. The true refcount is the sum of these two fields. In some cases, when refcounting operations are split across threads, the ob_ref_shared field can be negative (although the total refcount must be at least zero). In this case, the thread that decremented the refcount requests that the owning thread give up ownership and merge the refcount fields.
* gh-108416: Mark slow but not CPU bound test methods with ↵Serhiy Storchaka2023-09-051-0/+1
| | | | requires_resource('walltime') (GH-108480)
* gh-108388: Convert test_concurrent_futures to package (#108401)Victor Stinner2023-08-241-0/+107
Convert test_concurrent_futures to a package of sub-tests.