[MDEV-21225] Remove ut_align() and use aligned_malloc() Created: 2019-12-05 Updated: 2020-01-23 Resolved: 2019-12-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | mariabackup, Storage Engine - InnoDB |
| Fix Version/s: | 10.5.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Before the aligned_malloc() portability wrapper was introduced, InnoDB used a pattern of over-allocating a memory block and then invoking ut_align() to guarantee the desired alignment. It is cleaner to invoke aligned_malloc() and aligned_free() directly. Because there is no legitimate use of ut_align(), it should be removed. In assertions, ut_align_down() can be used instead. |