[all-commits] [llvm/llvm-project] 50f40a: [libc] Fix internal alignment in allcoator (#146738)
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Jul 2 10:29:22 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 50f40a5327ad9f8a4a57bb2bf7679f489f86b726
https://github.com/llvm/llvm-project/commit/50f40a5327ad9f8a4a57bb2bf7679f489f86b726
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-07-02 (Wed, 02 Jul 2025)
Changed paths:
M libc/src/__support/GPU/allocator.cpp
M libc/test/integration/src/stdlib/gpu/aligned_alloc.cpp
M libc/test/integration/src/stdlib/gpu/malloc.cpp
Log Message:
-----------
[libc] Fix internal alignment in allcoator (#146738)
Summary:
The allocator interface is supposed to have 16 byte alignment (to keep
it consistent with the CPU allocator. We could probably drop this to 8
if desires.) But this was not enforced because the number of bytes used
for the bitfield sometimes resulted in alignment of 8 instead of 16.
Explicitly align the number of bytes to be a multiple of 16 even if
unused.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list