Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
de9194fe
Commit
de9194fe
authored
Dec 07, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More info about the cycle detector.
parent
6efdbf03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Doc/ext/extending.tex
Doc/ext/extending.tex
+4
-2
No files found.
Doc/ext/extending.tex
View file @
de9194fe
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment