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

Remove ut_align() and use aligned_malloc()

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

            marko Marko Mäkelä created issue -
            marko Marko Mäkelä made changes -
            Field Original Value New Value
            marko Marko Mäkelä made changes -
            issue.field.resolutiondate 2019-12-05 04:48:11.0 2019-12-05 04:48:11.402
            marko Marko Mäkelä made changes -
            Fix Version/s 10.5.1 [ 24029 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            julien.fritsch Julien Fritsch made changes -
            Fixing Priority 250
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 101653 ] MariaDB v4 [ 134152 ]

            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.