visit_reachable: replace release-mode test with an assert. (GH-16866)
authorTim Peters <tim.peters@gmail.com>
Mon, 21 Oct 2019 16:21:35 +0000 (11:21 -0500)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 16:21:35 +0000 (11:21 -0500)
commit1e73945470644202262e1ddee2b49e2708a29794
tree5941be7bebb0c1349edfc95eac656eafa2dcf3ac
parent5bc6a7c06eda20ba131ecba6752be0506d310181
visit_reachable: replace release-mode test with an assert. (GH-16866)

It should be impossible for an untracked object to have the collecting
flag set.  Back when state was stored in gc_refs, it obviously was
impossible (gc_refs couldn't possibly have a positive & negative value
simultaneously).  While the _implementation_ of "state" has gotten much
more complicated, it's still _logically_ just as impossible.
Modules/gcmodule.c