| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
I could not reproduce the new test against main. I reproduced an assertion failure after changing the numbers. @threading_helper.reap_threads
def test_islice(self):
number_of_iterations = 600
for _ in range(number_of_iterations):
it = islice(tuple(range(100000)), 1, 8000000, 2)
threading_helper.run_concurrently(work_iterator, nthreads=10, args=[it])Which resulted in: Python/gc_free_threading.c:1083: validate_refcounts: Assertion "_Py_REFCNT(((PyObject*)((op)))) > 0" failed: tracked objects must have a reference count > 0 I didn't check how long it takes to run this test, but we would ideally keep it short. Can you find a way to make it reliably fail on main? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In this PR we use a critical section. An alternative approach is to use atomics (#144528), but that is more complex.