[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:
Relates
relates to MDEV-14602 Reduce malloc()/free() usage in InnoDB Confirmed

 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.


Generated at Thu Feb 08 09:05:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.