Commit fdc6f51
committed
[libc][stdlib] Add Block class
A block represents a chunk of memory used by the freelist allocator. It
contains header information denoting the usable space and pointers as
offsets to the next and previous block.
On it's own, this doesn't do much. This is a part of
llvm#94270 to land in smaller
patches.
This is a subset of pigweed's freelist allocator implementation.1 parent e20b904 commit fdc6f51
File tree
4 files changed
+1077
-0
lines changed- libc
- src/stdlib
- test/src/stdlib
4 files changed
+1077
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
383 | 395 | | |
384 | 396 | | |
385 | 397 | | |
| |||
0 commit comments