Commit 076b153
Fix incorrect alignment for Fiber::userBuffer_
Summary:
D88106410 replaced `std::aligned_storage` with `folly::aligned_storage_t` across folly. In `Fiber.h`, `userBuffer_` was incorrectly changed from `std::aligned_storage<kUserBufferSize>::type` (default alignment) to `folly::aligned_storage_t<kUserBufferSize, cacheline_align_v>` (64-byte cacheline alignment). The `cacheline_align_v` was not in the original code — it was mistakenly copied from the adjacent `Buffer` typedef.
This removes the spurious `cacheline_align_v` argument so `folly::aligned_storage_t<kUserBufferSize>` uses its default alignment, matching the original `std::aligned_storage<256>::type` behavior.
Reviewed By: dmm-fb, yfeldblum
Differential Revision: D95415011
fbshipit-source-id: a6bef72cd1caf3ee7058157a61fddceb555560de1 parent 2c9728d commit 076b153
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments