tornavis/tests/gtests/guardedalloc
Jacques Lucke 9c9ea37770 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
2020-01-23 14:21:48 +01:00
..
CMakeLists.txt ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
guardedalloc_alignment_test.cc Fix: Use a minimal alignment of 8 in MEM_lockfree_mallocN_aligned 2020-01-23 14:21:48 +01:00
guardedalloc_overflow_test.cc ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00