| 1 |
digraph "Life Events" { |
| 2 |
graph [ |
| 3 |
fontnames="svg" |
| 4 |
fontsize=12.0 |
| 5 |
id="life_events_graph" |
| 6 |
layout="dot" |
| 7 |
margin="0,0" |
| 8 |
ranksep=0.25 |
| 9 |
stylesheet="lifecycle.dot.css" |
| 10 |
] |
| 11 |
node [ |
| 12 |
fontname="Courier" |
| 13 |
fontsize=12.0 |
| 14 |
] |
| 15 |
edge [ |
| 16 |
fontname="Times-Italic" |
| 17 |
fontsize=12.0 |
| 18 |
] |
| 19 |
|
| 20 |
"start" [fontname="Times-Italic" shape=plain label=< start > style=invis] |
| 21 |
{ |
| 22 |
rank="same" |
| 23 |
"tp_new" [href="typeobj.html#c.PyTypeObject.tp_new" target="_top"] |
| 24 |
"tp_alloc" [href="typeobj.html#c.PyTypeObject.tp_alloc" target="_top"] |
| 25 |
} |
| 26 |
"tp_init" [href="typeobj.html#c.PyTypeObject.tp_init" target="_top"] |
| 27 |
"reachable" [fontname="Times-Italic" shape=box] |
| 28 |
"tp_traverse" [ |
| 29 |
href="typeobj.html#c.PyTypeObject.tp_traverse" |
| 30 |
ordering="in" |
| 31 |
target="_top" |
| 32 |
] |
| 33 |
"finalized?" [ |
| 34 |
fontname="Times-Italic" |
| 35 |
label=<marked as<br/>finalized?> |
| 36 |
ordering="in" |
| 37 |
shape=diamond |
| 38 |
tooltip="marked as finalized?" |
| 39 |
] |
| 40 |
"tp_finalize" [ |
| 41 |
href="typeobj.html#c.PyTypeObject.tp_finalize" |
| 42 |
ordering="in" |
| 43 |
target="_top" |
| 44 |
] |
| 45 |
"tp_clear" [href="typeobj.html#c.PyTypeObject.tp_clear" target="_top"] |
| 46 |
"uncollectable" [ |
| 47 |
fontname="Times-Italic" |
| 48 |
label=<uncollectable<br/>(leaked)> |
| 49 |
shape=box |
| 50 |
tooltip="uncollectable (leaked)" |
| 51 |
] |
| 52 |
"tp_dealloc" [ |
| 53 |
href="typeobj.html#c.PyTypeObject.tp_dealloc" |
| 54 |
ordering="in" |
| 55 |
target="_top" |
| 56 |
] |
| 57 |
"tp_free" [href="typeobj.html#c.PyTypeObject.tp_free" target="_top"] |
| 58 |
|
| 59 |
"start" -> "tp_new" [ |
| 60 |
label=< type call > |
| 61 |
] |
| 62 |
"tp_new" -> "tp_alloc" [ |
| 63 |
label=< direct call > arrowhead=empty |
| 64 |
labeltooltip="tp_new to tp_alloc: direct call" |
| 65 |
tooltip="tp_new to tp_alloc: direct call" |
| 66 |
] |
| 67 |
"tp_new" -> "tp_init" [tooltip="tp_new to tp_init"] |
| 68 |
"tp_init" -> "reachable" [tooltip="tp_init to reachable"] |
| 69 |
"reachable" -> "tp_traverse" [ |
| 70 |
dir="back" |
| 71 |
label=< not in a <br/> cyclic <br/> isolate > |
| 72 |
labeltooltip="tp_traverse to reachable: not in a cyclic isolate" |
| 73 |
tooltip="tp_traverse to reachable: not in a cyclic isolate" |
| 74 |
] |
| 75 |
"reachable" -> "tp_traverse" [ |
| 76 |
label=< periodic <br/> cyclic isolate <br/> detection > |
| 77 |
labeltooltip="reachable to tp_traverse: periodic cyclic isolate detection" |
| 78 |
tooltip="reachable to tp_traverse: periodic cyclic isolate detection" |
| 79 |
] |
| 80 |
"reachable" -> "tp_init" [tooltip="reachable to tp_init"] |
| 81 |
"reachable" -> "tp_finalize" [ |
| 82 |
dir="back" |
| 83 |
label=< resurrected <br/> (maybe remove <br/> finalized mark) > |
| 84 |
labeltooltip="tp_finalize to reachable: resurrected (maybe remove finalized mark)" |
| 85 |
tooltip="tp_finalize to reachable: resurrected (maybe remove finalized mark)" |
| 86 |
] |
| 87 |
"tp_traverse" -> "finalized?" [ |
| 88 |
label=< cyclic <br/> isolate > |
| 89 |
labeltooltip="tp_traverse to finalized?: cyclic isolate" |
| 90 |
tooltip="tp_traverse to finalized?: cyclic isolate" |
| 91 |
] |
| 92 |
"reachable" -> "finalized?" [ |
| 93 |
label=< no refs > |
| 94 |
labeltooltip="reachable to finalized?: no refs" |
| 95 |
tooltip="reachable to finalized?: no refs" |
| 96 |
] |
| 97 |
"finalized?" -> "tp_finalize" [ |
| 98 |
label=< no (mark <br/> as finalized) > |
| 99 |
labeltooltip="finalized? to tp_finalize: no (mark as finalized)" |
| 100 |
tooltip="finalized? to tp_finalize: no (mark as finalized)" |
| 101 |
] |
| 102 |
"finalized?" -> "tp_clear" [ |
| 103 |
label=< yes > |
| 104 |
labeltooltip="finalized? to tp_clear: yes" |
| 105 |
tooltip="finalized? to tp_clear: yes" |
| 106 |
] |
| 107 |
"tp_finalize" -> "tp_clear" [ |
| 108 |
label=< no refs or <br/> cyclic isolate > |
| 109 |
labeltooltip="tp_finalize to tp_clear: no refs or cyclic isolate" |
| 110 |
tooltip="tp_finalize to tp_clear: no refs or cyclic isolate" |
| 111 |
] |
| 112 |
"tp_finalize" -> "tp_dealloc" [ |
| 113 |
arrowtail=empty |
| 114 |
dir="back" |
| 115 |
href="lifecycle.html#c.PyObject_CallFinalizerFromDealloc" |
| 116 |
style=dashed |
| 117 |
label=< recommended<br/> call (see<br/> explanation)> |
| 118 |
labeltooltip="tp_dealloc to tp_finalize: recommended call (see explanation)" |
| 119 |
target="_top" |
| 120 |
tooltip="tp_dealloc to tp_finalize: recommended call (see explanation)" |
| 121 |
] |
| 122 |
"tp_finalize" -> "tp_dealloc" [ |
| 123 |
label=< no refs > |
| 124 |
labeltooltip="tp_finalize to tp_dealloc: no refs" |
| 125 |
tooltip="tp_finalize to tp_dealloc: no refs" |
| 126 |
] |
| 127 |
"tp_clear" -> "tp_dealloc" [ |
| 128 |
label=< no refs > |
| 129 |
labeltooltip="tp_clear to tp_dealloc: no refs" |
| 130 |
tooltip="tp_clear to tp_dealloc: no refs" |
| 131 |
] |
| 132 |
"tp_clear" -> "uncollectable" [ |
| 133 |
label=< cyclic <br/> isolate > |
| 134 |
labeltooltip="tp_clear to uncollectable: cyclic isolate" |
| 135 |
tooltip="tp_clear to uncollectable: cyclic isolate" |
| 136 |
] |
| 137 |
"uncollectable" -> "tp_dealloc" [ |
| 138 |
style=invis |
| 139 |
tooltip="uncollectable to tp_dealloc" |
| 140 |
] |
| 141 |
"reachable" -> "uncollectable" [ |
| 142 |
label=< cyclic <br/> isolate <br/> (no GC <br/> support) > |
| 143 |
labeltooltip="reachable to uncollectable: cyclic isolate (no GC support)" |
| 144 |
tooltip="reachable to uncollectable: cyclic isolate (no GC support)" |
| 145 |
] |
| 146 |
"reachable" -> "tp_dealloc" [ |
| 147 |
label=< no refs> |
| 148 |
labeltooltip="reachable to tp_dealloc: no refs" |
| 149 |
] |
| 150 |
"tp_dealloc" -> "tp_free" [ |
| 151 |
arrowhead=empty |
| 152 |
label=< direct call > |
| 153 |
labeltooltip="tp_dealloc to tp_free: direct call" |
| 154 |
tooltip="tp_dealloc to tp_free: direct call" |
| 155 |
] |
| 156 |
} |