summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.cpp
diff options
context:
space:
mode:
authorDaniel Thornburgh <dthorn@google.com>2024-07-23 17:16:41 -0700
committerGitHub <noreply@github.com>2024-07-23 17:16:41 -0700
commitf9cf5393dc9bc5e01f53e7906e7bebc3f3f30382 (patch)
tree13bfaa491e2d242454728c76f55412f54d6dd5e9 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.cpp
parentf3f0d9928f982cfd302351f418bcc5b63cc1bb9d (diff)
[libc][malloc] Align blocks to max_align_t. (#100279)
Since there are two offsets from block start to usable area, this ensures that the usable area is maximally aligned, so long as the offset type size is no less than half the max alignment. This is true on at least typical 32-bit and 64-bit targets. Previously, there was a roughly 50-50 chance a given block's usable area would be misaligned for a malloc on a 32-bit system. The half that were misaligned would require at least one block of additional padding, costing 12 bytes. With this change, the only cost is 0-4 bytes at the beginning of the heap to reach an initial 8-byte alignment. See #98096
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions