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

Obsolete sql_calloc() in favor of THD::calloc() and thd_calloc()

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.0
    • OTHER
    • None

    Description

      Since sql_calloc() doesn't have THD parameter, it has to retrieve THD::mem_root by calling relatively expensive pthread_getspecific(THR_MALLOC).

      This can be optimized easily by modifying server to use THD::calloc() and modifying plugins to use thd_calloc().

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1d
                  1d
                  Remaining:
                  Time Spent - 5m Remaining Estimate - 7h 55m
                  7h 55m
                  Logged:
                  Time Spent - 5m Remaining Estimate - 7h 55m
                  5m

                  Git Integration

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