1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080">
<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs>
<rect width="1920" height="1080" fill="#0a1030"/>
<text x="64.0" y="81.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">malloc: glibc and musl</text>
<text x="393.2 408.2 423.2 438.2 453.2 468.2 483.2 498.2 513.2 528.2 543.2 558.2 573.2 588.2 603.2 618.2 633.2 648.2" y="81.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">heap.c:9 free(b);</text>
<text x="1790.9" y="80.0" font-family="Go Medium" font-size="22" fill="#6a7ab8" xml:space="preserve">kernel</text>
<rect x="1767.9" y="66.0" width="14.0" height="14.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<text x="1646.4" y="80.0" font-family="Go Medium" font-size="22" fill="#eee6d2" xml:space="preserve">memory</text>
<rect x="1622.4" y="65.0" width="16.0" height="16.0" fill="#e8c46a"/>
<text x="1547.1" y="80.0" font-family="Go Medium" font-size="22" fill="#6a7ab8" xml:space="preserve">cpu</text>
<rect x="1524.1" y="66.0" width="14.0" height="14.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<text x="1416.1" y="80.0" font-family="Go Medium" font-size="22" fill="#9aa6d9" xml:space="preserve">source</text>
<rect x="1392.1" y="65.0" width="16.0" height="16.0" fill="#9aa6d9"/>
<line x1="64.0" y1="104.0" x2="1856.0" y2="104.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="64.0" y="120.0" width="880.0" height="48.0" fill="#16245f"/>
<rect x="65.0" y="121.0" width="878.0" height="766.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<line x1="64.0" y1="168.0" x2="944.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="79.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/>
<text x="112.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">glibc 2.39</text>
<text x="928.0" y="152.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">ptmalloc</text>
<text x="92.0" y="212.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">the heap: one run of chunks</text>
<rect x="92.0" y="266.0" width="70.0" height="88.0" fill="#3a4a8a"/>
<rect x="164.0" y="266.0" width="126.0" height="88.0" fill="#1f4a33"/>
<rect x="165.5" y="267.5" width="123.0" height="85.0" fill="none" stroke="#7fdc9a" stroke-width="3"/>
<rect x="167.0" y="269.0" width="29.0" height="82.0" fill="#3a4a8a"/>
<text x="232.5" y="322.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">a</text>
<rect x="292.0" y="266.0" width="126.0" height="88.0" fill="url(#hatch)"/>
<rect x="293.5" y="267.5" width="123.0" height="85.0" fill="none" stroke="#9aa6d9" stroke-width="3" stroke-dasharray="12 8"/>
<rect x="295.0" y="269.0" width="29.0" height="82.0" fill="#3a4a8a"/>
<rect x="324.0" y="269.0" width="31.0" height="82.0" fill="#ff6a4a"/>
<rect x="356.0" y="269.0" width="31.0" height="82.0" fill="#ff6a4a"/>
<rect x="386.0" y="288.0" width="32.0" height="44.0" fill="#0a1030"/>
<text x="391.5" y="322.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">b</text>
<rect x="420.0" y="266.0" width="446.0" height="88.0" fill="#1f4a33"/>
<rect x="421.5" y="267.5" width="443.0" height="85.0" fill="none" stroke="#7fdc9a" stroke-width="3"/>
<rect x="423.0" y="269.0" width="29.0" height="82.0" fill="#3a4a8a"/>
<text x="648.5" y="322.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">c</text>
<rect x="869.0" y="267.0" width="46.0" height="86.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<rect x="886.0" y="307.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="900.0" y="307.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="914.0" y="307.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="92.0" y="252.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve">tcache</text>
<text x="916.0" y="252.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">unused</text>
<path d="M739,366 v16 m0,-8 H865 m0,-8 v16" fill="none" stroke="#6a7ab8" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/>
<text x="724.0" y="382.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">32 bytes</text>
<text x="370.0" y="452.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">inside b</text>
<path d="M292,358 L178,472 M418,358 L560,472" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/>
<rect x="178.0" y="478.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="225.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="243.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="261.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="279.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="297.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="315.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="333.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="351.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="369.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="387.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="405.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="423.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="441.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="459.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="477.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">2</text>
<text x="495.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<text x="580.0 595.0 610.0 625.0" y="510.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">size</text>
<text x="654.0" y="509.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">of this chunk</text>
<rect x="178.0" y="538.0" width="382.0" height="46.0" fill="#ff6a4a"/>
<text x="225.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="243.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="261.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="279.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="297.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="315.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="333.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="351.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">5</text>
<text x="369.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">5</text>
<text x="387.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">d</text>
<text x="405.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">4</text>
<text x="423.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">a</text>
<text x="441.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">1</text>
<text x="459.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">c</text>
<text x="477.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="495.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">3</text>
<text x="580.0 595.0 610.0 625.0" y="570.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">next</text>
<text x="654.0" y="569.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">free chunk: none</text>
<rect x="178.0" y="598.0" width="382.0" height="46.0" fill="#ff6a4a"/>
<text x="225.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">8</text>
<text x="243.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">f</text>
<text x="261.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">3</text>
<text x="279.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">a</text>
<text x="297.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">6</text>
<text x="315.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">1</text>
<text x="333.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">c</text>
<text x="351.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">2</text>
<text x="369.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">d</text>
<text x="387.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="405.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">7</text>
<text x="423.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">b</text>
<text x="441.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">4</text>
<text x="459.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">e</text>
<text x="477.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">1</text>
<text x="495.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">9</text>
<text x="580.0 595.0 610.0" y="630.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">key</text>
<text x="639.0" y="629.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">marks it freed</text>
<rect x="178.0" y="658.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="225.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="243.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="261.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="279.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="297.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="315.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="333.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="351.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="369.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="387.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="405.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="423.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="441.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="459.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="477.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">2</text>
<text x="495.0" y="691.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">a</text>
<text x="580.0" y="689.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">your old data</text>
<text x="122.0 137.0 152.0 167.0" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">0x20</text>
<rect x="92.0" y="748.0" width="120.0" height="46.0" fill="#ff6a4a"/>
<text x="98.0 116.0 134.0 152.0 170.0 188.0" y="781.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">1 free</text>
<text x="258.0 273.0 288.0 303.0" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">0x30</text>
<rect x="228.0" y="748.0" width="120.0" height="46.0" fill="#16245f"/>
<text x="279.0" y="781.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="394.0 409.0 424.0 439.0" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">0x40</text>
<rect x="364.0" y="748.0" width="120.0" height="46.0" fill="#16245f"/>
<text x="415.0" y="781.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="530.0 545.0 560.0 575.0" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">0x50</text>
<rect x="500.0" y="748.0" width="120.0" height="46.0" fill="#16245f"/>
<text x="551.0" y="781.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="666.0 681.0 696.0 711.0" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">0x60</text>
<rect x="636.0" y="748.0" width="120.0" height="46.0" fill="#16245f"/>
<text x="687.0" y="781.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="802.0 817.0 832.0 847.0" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">0x70</text>
<rect x="772.0" y="748.0" width="120.0" height="46.0" fill="#16245f"/>
<text x="823.0" y="781.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<path d="M122.0,748.0 L122.0,573.0 Q122.0,561.0 134.0,561.0 L158.0,561.0" fill="none" stroke="#86b6ff" stroke-width="4" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M174.0,561.0 L156.0,569.0 L156.0,553.0 Z" fill="#86b6ff"/>
<text x="92.0" y="868.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">its notes: a list for each size, kept in the heap itself</text>
<rect x="976.0" y="120.0" width="880.0" height="48.0" fill="#16245f"/>
<rect x="977.0" y="121.0" width="878.0" height="766.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<line x1="976.0" y1="168.0" x2="1856.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="991.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/>
<text x="1024.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">musl 1.2.5</text>
<text x="1840.0" y="152.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">mallocng</text>
<text x="1004.0" y="212.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">the heap: groups of equal slots</text>
<rect x="1004.0" y="238.0" width="62.0" height="56.0" fill="#3a4a8a"/>
<rect x="1068.0" y="238.0" width="446.0" height="56.0" fill="#1f4a33"/>
<rect x="1069.5" y="239.5" width="443.0" height="53.0" fill="none" stroke="#7fdc9a" stroke-width="3"/>
<text x="1280.5" y="278.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">c</text>
<rect x="1517.0" y="239.0" width="310.0" height="54.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<rect x="1534.0" y="263.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1548.0" y="263.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1562.0" y="263.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="1828.0" y="226.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">112-byte slots</text>
<rect x="1004.0" y="334.0" width="62.0" height="56.0" fill="#3a4a8a"/>
<rect x="1068.0" y="334.0" width="126.0" height="56.0" fill="#1f4a33"/>
<rect x="1069.5" y="335.5" width="123.0" height="53.0" fill="none" stroke="#7fdc9a" stroke-width="3"/>
<text x="1120.5" y="374.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">a</text>
<rect x="1196.0" y="334.0" width="126.0" height="56.0" fill="url(#hatch)"/>
<rect x="1197.5" y="335.5" width="123.0" height="53.0" fill="none" stroke="#9aa6d9" stroke-width="3" stroke-dasharray="12 8"/>
<rect x="1199.0" y="337.0" width="14.0" height="50.0" fill="#ff6a4a"/>
<rect x="1243.0" y="340.0" width="32.0" height="44.0" fill="#0a1030"/>
<text x="1248.5" y="374.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">b</text>
<rect x="1325.0" y="335.0" width="124.0" height="54.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<rect x="1453.0" y="335.0" width="124.0" height="54.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<rect x="1581.0" y="335.0" width="124.0" height="54.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<rect x="1722.0" y="359.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1736.0" y="359.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1750.0" y="359.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="1828.0" y="322.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">32-byte slots</text>
<text x="1282.0" y="452.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">inside b</text>
<path d="M1196,394 L1090,472 M1322,394 L1472,472" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/>
<rect x="1090.0" y="478.0" width="190.0" height="46.0" fill="#5a2218"/>
<rect x="1090.0" y="518.0" width="190.0" height="6.0" fill="#ff6a4a"/>
<text x="1113.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">f</text>
<text x="1131.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">f</text>
<text x="1149.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1167.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1185.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1203.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1221.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1239.0" y="511.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1300.0" y="509.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">its tag, cleared</text>
<rect x="1090.0" y="538.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="1137.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1155.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1173.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1191.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1209.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1227.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1245.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1263.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1281.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1299.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1317.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1335.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1353.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1371.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1389.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">2</text>
<text x="1407.0" y="571.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">a</text>
<text x="1492.0" y="569.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">your old data,</text>
<rect x="1090.0" y="598.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="1137.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1155.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1173.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1191.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1209.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1227.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1245.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1263.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1281.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1299.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1317.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1335.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1353.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1371.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1389.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1407.0" y="631.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1492.0" y="629.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">all of it untouched</text>
<text x="1180.0" y="719.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve" text-anchor="end">can hand out</text>
<rect x="1200.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1214.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1248.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1262.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1296.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1310.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1344.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1358.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1392.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1406.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1440.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1454.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1488.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1502.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1536.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1550.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1584.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1598.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<rect x="1632.0" y="688.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1646.0" y="721.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">1</text>
<text x="1180.0" y="771.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve" text-anchor="end">freed</text>
<rect x="1200.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1214.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1248.0" y="740.0" width="46.0" height="46.0" fill="#ff6a4a"/>
<text x="1262.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">1</text>
<rect x="1296.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1310.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1344.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1358.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1392.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1406.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1440.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1454.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1488.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1502.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1536.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1550.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1584.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1598.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<rect x="1632.0" y="740.0" width="46.0" height="46.0" fill="#16245f"/>
<text x="1646.0" y="773.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1215.5" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">a</text>
<text x="1263.5" y="824.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">b</text>
<text x="1306.0" y="824.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve">one bit for each slot</text>
<text x="1004.0" y="868.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">its notes: one record for each group, kept apart</text>
<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">glibc threads its free list through the freed chunk itself.</tspan></text>
<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">musl flips one bit in a record it keeps apart from your data.</tspan></text>
</svg>
|