diff options
author | Jacques Lucke <mail@jlucke.com> | 2020-01-23 16:17:13 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2020-01-23 16:21:48 +0300 |
commit | 9c9ea37770dcf2d8a77cab0bf267a5bcf76500eb (patch) | |
tree | 42949c951e57c88dc34ab62dc79763644aea5848 /release | |
parent | 237d03f3a308efb2155c438ada6feb347472db8c (diff) |
Fix: Use a minimal alignment of 8 in MEM_lockfree_mallocN_aligned
`posix_memalign` requires the `alignment` to be at least `sizeof(void *)`.
Previously, `MEM_mallocN_aligned` would simply return `NULL` if a too small
`alignment` was used. This was an OS specific issue.
The solution is to use a minimal alignment of `8` for all aligned allocations.
The unit tests have been extended to test more possible alignments (some
of which were broken before).
Reviewers: brecht
Differential Revision: https://developer.blender.org/D6660
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions