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

Annotate various methods with `noexcept`

    XMLWordPrintable

Details

    Description

      As described in https://github.com/MariaDB/server/pull/3531 I suggest adding `noexcept` annotations to various methods throughout the MariaDB code base, starting with the InnoDB locking code.

      MariaDB is compiled with C++ exceptions enabled, and that disallows some optimizations (e.g. the stack must always be unwinding-safe).  By adding `noexcept` to functions that are guaranteed to never throw, some of these optimizations can be regained.  Low-level locking functions that are called often are a good candidate for this.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              maxk Max Kellermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.