Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11102

When building in debug mode, gperftools debug allocation features should be enabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3
    • Component/s: Build
    • Labels:
    • Backwards Compatibility:
      Fully Compatible

      Description

      We currently always build tcmalloc.o which doesn't enable the debugging support in tcmalloc, but we could easily enable those features by compiling debugallocation.o instead (which includes tcmalloc.o). We could either always do this when building with --dbg=on, or we could create a new option for the --allocator flag, probably --allocator=tcmalloc-debug.

      We need to double check that tcmalloc's internal valgrind detection and avoidance is functioning correctly.

        Attachments

          Activity

            People

            Assignee:
            acm Andrew Morrow
            Reporter:
            acm Andrew Morrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: