]> granicus.if.org Git - python/commit
Misc gc code & comment cleanups. (GH-16752)
authorTim Peters <tim.peters@gmail.com>
Sun, 13 Oct 2019 21:47:04 +0000 (16:47 -0500)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2019 21:47:04 +0000 (16:47 -0500)
commit95bfc8a11a0ef09912b288ed3415405d928d0dee
tree0519afa51da9517cff05b1d5069ded09f880997d
parentfdfe2833ace93021278fe4c41c40e1d08d70abf9
Misc gc code & comment cleanups. (GH-16752)

* Misc gc code & comment cleanups.

validate_list:  there are two temp flags polluting pointers, but this checked only one.  Now it checks both, and verifies that the list head's pointers are not polluted.

move_unreachable: repaired incoherent comments.  Added new comments.  Cleared the pollution of the unreachable list head's 'next' pointer (it was expedient while the function was running, but there's no excuse for letting this damage survive the function's end).

* Update Modules/gcmodule.c

Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
Modules/gcmodule.c