Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-58953

Determine what memory allocator to use at runtime

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      When trying to build magma as a shared library we ran into issues because jemalloc was set to be used however the memory was actually allocated using malloc. So when methods from `ArenaMalloc` were used they used jemalloc but the memory belonged to malloc. (for more info see this thread: https://couchbase.slack.com/archives/CDNGWKZ7D/p1696346362078789)

      We need to check what allocator we are using at runtime and decide whether we should use the `ArenaMalloc` methods or the general malloc methods.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            scott.lashley Scott Lashley (Inactive)
            Gvidas.Razevicius Gvidas Razevicius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty