Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21225

Remove ut_align() and use aligned_malloc()

    XMLWordPrintable

Details

    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.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.