Commit de9194fe authored by Guido van Rossum's avatar Guido van Rossum

More info about the cycle detector.

parent 6efdbf03
...@@ -1248,10 +1248,12 @@ The cycle detector is able to detect garbage cycles and can reclaim ...@@ -1248,10 +1248,12 @@ The cycle detector is able to detect garbage cycles and can reclaim
them so long as there are no finalizers implemented in Python them so long as there are no finalizers implemented in Python
(\method{__del__()} methods). When there are such finalizers, the (\method{__del__()} methods). When there are such finalizers, the
detector exposes the cycles through the \ulink{\module{gc} detector exposes the cycles through the \ulink{\module{gc}
module}{../lib/module-gc.html}. The \module{gc} module also exposes module}{../lib/module-gc.html} (specifically, the \code{garbage}
variable in that module). The \module{gc} module also exposes a way
to run the detector (the \function{collect()} function), as well as
configuration interfaces and the ability to disable the detector at configuration interfaces and the ability to disable the detector at
runtime. The cycle detector is considered an optional component; runtime. The cycle detector is considered an optional component;
though it is included by default, it can be disabled at compile time though it is included by default, it can be disabled at build time
using the \longprogramopt{without-cycle-gc} option to the using the \longprogramopt{without-cycle-gc} option to the
\program{configure} script on \UNIX{} platforms (including Mac OS X) \program{configure} script on \UNIX{} platforms (including Mac OS X)
or by removing the definition of \code{WITH_CYCLE_GC} in the or by removing the definition of \code{WITH_CYCLE_GC} in the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment