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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible

      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.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: