Skip to content

bpo-40521: Make float free list per-interpreter #20636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2020
Merged

bpo-40521: Make float free list per-interpreter #20636

merged 1 commit into from
Jun 4, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 4, 2020

Each interpreter now has its own float free list:

  • Move tuple numfree and free_list into PyInterpreterState.
  • Add _Py_float_state structure.
  • Add tstate parameter to _PyFloat_ClearFreeList()
    and _PyFloat_Fini().

https://bugs.python.org/issue40521

Each interpreter now has its own float free list:

* Move tuple numfree and free_list into PyInterpreterState.
* Add _Py_float_state structure.
* Add tstate parameter to _PyFloat_ClearFreeList()
  and _PyFloat_Fini().
@vstinner
Copy link
Member Author

vstinner commented Jun 4, 2020

There no reference leak on the following tests which use subinterpreters:

./python -m test -j0 -R 3:3 test_capi test__xxsubinterpreters test_atexit  test_threading 

@vstinner vstinner merged commit 2ba5937 into python:master Jun 4, 2020
@vstinner vstinner deleted the float_free_list branch June 4, 2020 22:50
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
Each interpreter now has its own float free list:

* Move tuple numfree and free_list into PyInterpreterState.
* Add _Py_float_state structure.
* Add tstate parameter to _PyFloat_ClearFreeList()
  and _PyFloat_Fini().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants