[SERVER-11102] When building in debug mode, gperftools debug allocation features should be enabled Created: 09/Oct/13  Updated: 11/Jul/16  Resolved: 21/Oct/13

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: build
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 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.



 Comments   
Comment by auto [ 10/Oct/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-11102 Enable gperftools debugging features in debug builds
Branch: master
https://github.com/mongodb/mongo/commit/c5b32e97207bf0edbdf3567eedc9082cdb96b4fb

Generated at Thu Feb 08 03:24:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.