aboutsummaryrefslogtreecommitdiff
path: root/src/docs.cpp
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-19 19:36:55 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-19 19:41:38 -0400
commit57e2d8f1ddf356a0bfabec7630c1e7ff0199f800 (patch)
tree22457163fad565583fbc0968f098e07286ddded4 /src/docs.cpp
parent4e9f15965a9aba66833a1b377094d8b1544f155c (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/docs.cpp')
0 files changed, 0 insertions, 0 deletions