Skip to content
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

bpo-40887: Don't use finalized free lists #20700

Merged
merged 1 commit into from Jun 8, 2020
Merged

bpo-40887: Don't use finalized free lists #20700

merged 1 commit into from Jun 8, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 7, 2020

In debug mode, ensure that free lists are no longer used after being
finalized. Set numfree to -1 in finalization functions
(eg. _PyList_Fini()), and then check that numfree is not equal to -1
before using a free list (e.g list_dealloc()).

https://bugs.python.org/issue40887

In debug mode, ensure that free lists are no longer used after being
finalized. Set numfree to -1 in finalization functions
(eg. _PyList_Fini()), and then check that numfree is not equal to -1
before using a free list (e.g list_dealloc()).
@vstinner vstinner requested a review from 1st1 as a code owner June 7, 2020 23:37
@vstinner vstinner merged commit bcb1983 into python:master Jun 8, 2020
@vstinner vstinner deleted the free_list_check branch June 8, 2020 00:14
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
In debug mode, ensure that free lists are no longer used after being
finalized. Set numfree to -1 in finalization functions
(eg. _PyList_Fini()), and then check that numfree is not equal to -1
before using a free list (e.g list_dealloc()).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants