diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-19 19:36:55 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-19 19:41:38 -0400 |
| commit | 57e2d8f1ddf356a0bfabec7630c1e7ff0199f800 (patch) | |
| tree | 22457163fad565583fbc0968f098e07286ddded4 /src/timings.cpp | |
| parent | 4e9f15965a9aba66833a1b377094d8b1544f155c (diff) | |
mem: Fix `Buddy_Allocator` size calculation to truly include alignment
This didn't take into account the size of the header plus the size of
the allocation itself by virtue of `align_forward_uint`; this could
result in no change if `size` was equal to `b.alignment` because the
number is aligned, and if `actual_size` and `size` ended up being equal,
no additional space would be requested.
This meant that a block would end up being allocated on top of its
buddy's head.
Fixes #3435
Diffstat (limited to 'src/timings.cpp')
0 files changed, 0 insertions, 0 deletions