mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
remove trailing spaces.
This commit is contained in:
parent
0bffca006a
commit
b1792d9503
1 changed files with 7 additions and 7 deletions
|
@ -118,7 +118,7 @@ static Py_ssize_t long_lived_pending = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NOTE: about untracking of mutable objects.
|
NOTE: about untracking of mutable objects.
|
||||||
|
|
||||||
Certain types of container cannot participate in a reference cycle, and
|
Certain types of container cannot participate in a reference cycle, and
|
||||||
so do not need to be tracked by the garbage collector. Untracking these
|
so do not need to be tracked by the garbage collector. Untracking these
|
||||||
objects reduces the cost of garbage collections. However, determining
|
objects reduces the cost of garbage collections. However, determining
|
||||||
|
@ -136,10 +136,10 @@ static Py_ssize_t long_lived_pending = 0;
|
||||||
not survive until garbage collection. It is therefore not worthwhile
|
not survive until garbage collection. It is therefore not worthwhile
|
||||||
to untrack eligible tuples at creation time.
|
to untrack eligible tuples at creation time.
|
||||||
|
|
||||||
Instead, all tuples except the empty tuple are tracked when created.
|
Instead, all tuples except the empty tuple are tracked when created.
|
||||||
During garbage collection it is determined whether any surviving tuples
|
During garbage collection it is determined whether any surviving tuples
|
||||||
can be untracked. A tuple can be untracked if all of its contents are
|
can be untracked. A tuple can be untracked if all of its contents are
|
||||||
already not tracked. Tuples are examined for untracking in all garbage
|
already not tracked. Tuples are examined for untracking in all garbage
|
||||||
collection cycles. It may take more than one cycle to untrack a tuple.
|
collection cycles. It may take more than one cycle to untrack a tuple.
|
||||||
|
|
||||||
Dictionaries containing only immutable objects also do not need to be
|
Dictionaries containing only immutable objects also do not need to be
|
||||||
|
@ -152,8 +152,8 @@ static Py_ssize_t long_lived_pending = 0;
|
||||||
The module provides the python function is_tracked(obj), which returns
|
The module provides the python function is_tracked(obj), which returns
|
||||||
the CURRENT tracking status of the object. Subsequent garbage
|
the CURRENT tracking status of the object. Subsequent garbage
|
||||||
collections may change the tracking status of the object.
|
collections may change the tracking status of the object.
|
||||||
|
|
||||||
Untracking of certain containers was introduced in issue #4688, and
|
Untracking of certain containers was introduced in issue #4688, and
|
||||||
the algorithm was refined in response to issue #14775.
|
the algorithm was refined in response to issue #14775.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue