Skip to content

Commit 15b1c30

Browse files
authored
chore: fix tlsfvis.html label issue (#2881)
1 parent 1554258 commit 15b1c30

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/rtrace/tlsfvis.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,16 @@
169169
</style>
170170

171171
<h1>TLSF visualizer</h1>
172-
<p>
173-
<strong>Notes:</strong>
172+
<div>
173+
<p><strong>Notes:</strong></p>
174174
<ul>
175175
<li>It is expected that there is exactly one block on initialization. This is the remaining space (&lt; 64K) within the last page after static data.</li>
176176
<li>It is expected that if two adjacent blocks of size K are freed, the merged block doesn't go into the first level list for K*2 because its size is actually larger than that (K + OVERHEAD + K).</li>
177177
<li>It is expected that if memory grows beyond 1GB, that even if all blocks are free'd there are at least two (or even three if the largest block is in the middle) remaining blocks, because a single block must not be larger than 1GB.</li>
178178
<li>It is expected that after other operations have already been performed, being able to allocate 1GB can't be guaranteed anymore, even if there should be enough space left in absolute terms, if prior subdivision prevents it.</li>
179179
<li>It is expected that the second level 0 in first level 0 isn't ever used due to alignment guarantees. Smallest block is 32 bytes (16 bytes overhead + 16 bytes payload if used, respectively linking information if free) in this implementation.</li>
180180
</ul>
181-
</p>
181+
</div>
182182
<p><strong>Implementation constants:</strong> <span id="albits">?</span> bits alignment, <span id="flbits">?</span> bits first level, <span id="slbits">?</span> bits second level, <span id="overhead">?</span> B overhead</p>
183183

184184
<h2>First level bitmap</h2>
@@ -229,7 +229,6 @@ <h2>Allocator</h2>
229229
<button onclick="allocate(536870912-OVERHEAD); update()">512 MB - δ <span class="sub">fl=MSB-1 sl=MSB</span></button>
230230
<button onclick="allocate(1073741824-OVERHEAD); update()">1 GB - δ <span class="sub">fl=MSB sl=MSB</span></button>
231231
</p>
232-
</p>
233232

234233
<h2>Segments</h2>
235234
<p>Allocations performed above are tracked here so you can free them again. Note that TLSF alone does not keep track of used blocks (unless free'd and put in a free list again). It is expected that adjacent free blocks become merged automatically.</p>

0 commit comments

Comments
 (0)