Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion InternalDocs/garbage_collector.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Why moving unreachable objects is better

It sounds logical to move the unreachable objects under the premise that most objects
are usually reachable, until you think about it: the reason it pays isn't actually
obvious.
obvious ([[Python-Dev] Some dull gc stats](https://mail.python.org/pipermail/python-dev/2002-July/026062.html)).

Suppose we create objects A, B, C in that order. They appear in the young generation
in the same order. If B points to A, and C to B, and C is reachable from outside,
Expand Down
2 changes: 1 addition & 1 deletion Python/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ deduce_unreachable(PyGC_Head *base, PyGC_Head *unreachable) {
* set instead. But most things usually turn out to be reachable,
* so it's more efficient to move the unreachable things. It "sounds slick"
* to move the unreachable objects, until you think about it - the reason it
* pays isn't actually obvious.
* pays isn't actually obvious. (https://mail.python.org/pipermail/python-dev/2002-July/026062.html)
*
* Suppose we create objects A, B, C in that order. They appear in the young
* generation in the same order. If B points to A, and C to B, and C is
Expand Down
Loading