diff options
author | Daniel Thornburgh <dthorn@google.com> | 2025-01-16 11:56:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 11:56:46 -0800 |
commit | 60de7dc886b9d83b0e2b6c9d7b73173d5d870388 (patch) | |
tree | 757d066b42aceadc4d9b6bd6e525cf85dc67b58d /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | acba822a45a71ad5b2dc02927e6ac904675f9bd6 (diff) | |
download | llvm-60de7dc886b9d83b0e2b6c9d7b73173d5d870388.zip llvm-60de7dc886b9d83b0e2b6c9d7b73173d5d870388.tar.gz llvm-60de7dc886b9d83b0e2b6c9d7b73173d5d870388.tar.bz2 |
[libc] Fix malloc Block alignment issue on riscv32 (#117815)
Aligning blocks to max_align_t is neither necessary nor sufficient to
ensure that the usable_space() is so aligned. Instead, we make this an
invariant of Block and maintain it in init() and split().
This allows targets like riscv32 with small pointers and large
max_align_t to maintain the property that all available blocks are
aligned for malloc(). This change adjusts the tests to match and also
updates them closer to llvm-libc style.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions