Skip to content

Commit 7e571ae

Browse files
committed
delete "ref count == 0" node, link directly to tp_dealloc
1 parent b42b58d commit 7e571ae

File tree

2 files changed

+103
-112
lines changed

2 files changed

+103
-112
lines changed

Doc/c-api/lifecycle.dot

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ digraph G {
4141
shape=octagon
4242
target="_top"
4343
]
44-
"ref0" [
45-
fontname="Times-Italic"
46-
label=<ref count == 0>
44+
"tp_dealloc" [
45+
href="typeobj.html#c.PyTypeObject.tp_dealloc"
4746
ordering="in"
48-
shape=box
47+
target="_top"
4948
]
50-
"tp_dealloc" [href="typeobj.html#c.PyTypeObject.tp_dealloc" target="_top"]
5149
"tp_free" [href="typeobj.html#c.PyTypeObject.tp_free" target="_top"]
5250

5351
"start" -> "tp_alloc"
@@ -63,14 +61,6 @@ digraph G {
6361
]
6462
"alive" -> "tp_finalize" [label=< cyclic <br/>isolate >]
6563
"tp_finalize" -> "tp_clear"
66-
"tp_finalize" -> "ref0"
67-
"tp_clear" -> "ref0"
68-
"tp_clear" -> "tp_dealloc" [
69-
dir="back"
70-
label=< optional<br/>direct call >
71-
]
72-
"alive" -> "ref0"
73-
"ref0" -> "tp_dealloc"
7464
"tp_finalize" -> "tp_dealloc" [
7565
dir="back"
7666
href="lifecycle.html#c.PyObject_CallFinalizerFromDealloc"
@@ -92,5 +82,12 @@ digraph G {
9282
>
9383
target="_top"
9484
]
85+
"tp_finalize" -> "tp_dealloc" [label=< ref count <br/> == 0 >]
86+
"tp_clear" -> "tp_dealloc" [label=< ref count <br/> == 0 >]
87+
"tp_clear" -> "tp_dealloc" [
88+
dir="back"
89+
label=< optional<br/>direct call >
90+
]
91+
"alive" -> "tp_dealloc" [label=< ref count <br/> == 0 >]
9592
"tp_dealloc" -> "tp_free" [label=< directly calls >]
9693
}

0 commit comments

Comments
 (0)