summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc
Commit message (Collapse)AuthorAgeFilesLines
* Disable TCMalloc heap sampling.willchan@chromium.org2010-05-271-1/+1
| | | | | | | | BUG=38960,40149 Review URL: http://codereview.chromium.org/2260003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48445 0039d316-1c4b-4281-b951-d872f2087c98
* Merge tcmalloc r93 into the Chromium tcmalloc branch.glider@chromium.org2010-05-2541-1579/+1912
| | | | | | | | | We can't afford using r94 due to a performance regression. TBR=willchan,antonm,jar,mbelshe Review URL: http://codereview.chromium.org/2144003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48145 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 48024 - Reland http://codereview.chromium.org/1735024/show to assess ↵glider@chromium.org2010-05-2452-2154/+1748
| | | | | | | | | | | the performance. Review URL: http://codereview.chromium.org/2164001 TBR=antonm,willchan Review URL: http://codereview.chromium.org/2155002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48032 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land http://codereview.chromium.org/1735024/show to assess the performance.glider@chromium.org2010-05-2452-1748/+2154
| | | | | | | | TBR=antonm,willchan Review URL: http://codereview.chromium.org/2164001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48024 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 47789 - The newer version of tcmalloc should fix the problems with ↵glider@chromium.org2010-05-2154-6226/+1748
| | | | | | | | | | | running tcmalloc under Valgrind. Review URL: http://codereview.chromium.org/1735024 TBR=willchan,antonm Review URL: http://codereview.chromium.org/2138002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47909 0039d316-1c4b-4281-b951-d872f2087c98
* The newer version of tcmalloc should fix the problems with running tcmalloc ↵glider@chromium.org2010-05-2054-1748/+6226
| | | | | | | | under Valgrind. Review URL: http://codereview.chromium.org/1735024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47789 0039d316-1c4b-4281-b951-d872f2087c98
* Update the vendor tcmalloc branch to r94.glider@chromium.org2010-05-1122-211/+394
| | | | | | | | | | This CL doesn't affect any Chromium code. TBD=willchan Review URL: http://codereview.chromium.org/2004007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46906 0039d316-1c4b-4281-b951-d872f2087c98
* Update the vendor tcmalloc to r93.glider@chromium.org2010-04-3051-1804/+6476
| | | | | | | TBR=willchan Review URL: http://codereview.chromium.org/1800011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46054 0039d316-1c4b-4281-b951-d872f2087c98
* Use the /INCLUDE:symbol linker option pragmas to forcewtc@chromium.org2010-04-231-7/+14
| | | | | | | | | | | | | | | | | | references to the magic variables we added to the data segment for TLS callbacks. The references prevent whole program optimization from optimizing away those variables. This requires three changes: 1) the variables cannot be declared as static. 2) the variables must be declared extern "C" to suppress C++ name mangling. 3) the variables cannot have the same name. R=jar,maruel BUG=40663 TEST=none Review URL: http://codereview.chromium.org/1752004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45405 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r45389. Experiment over.willchan@chromium.org2010-04-231-1/+1
| | | | | | | | | Revert "TCMalloc: Experiment with setting FLAGS_tcmalloc_release_rate to 50. This is a performance / memory usage tradeoff. 50 is pretty high. I'm going to revert this after a run or two on the buildbots." BUG=28385 Review URL: http://codereview.chromium.org/1739003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45401 0039d316-1c4b-4281-b951-d872f2087c98
* TCMalloc: Experiment with setting FLAGS_tcmalloc_release_rate to 50. This ↵willchan@chromium.org2010-04-231-1/+1
| | | | | | | | | | is a performance / memory usage tradeoff. 50 is pretty high. I'm going to revert this after a run or two on the buildbots. BUG=28385 Review URL: http://codereview.chromium.org/1771002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45389 0039d316-1c4b-4281-b951-d872f2087c98
* TCMalloc: don't use initialize hook. Just set the hook pointers directly.willchan@chromium.org2010-04-211-13/+7
| | | | | | | | | | | Don't do this for memalign since it's already done elsewhere. TODO(willchan): Mimic MemalignOverride and get it working for debugallocation and HeapChecker later. BUG=40974,42171 Review URL: http://codereview.chromium.org/1693003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45197 0039d316-1c4b-4281-b951-d872f2087c98
* Clang: Fix TCMalloc's broken externs.willchan@chromium.org2010-04-202-5/+2
| | | | | | | | pthread_once's signature doesn't match the /usr/include/pthread.h signature. __THROW is incorrect. Review URL: http://codereview.chromium.org/1719001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45091 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Make TCMalloc override ptmalloc hooks.willchan@chromium.org2010-04-191-0/+34
| | | | | | | | | Certain libraries still seem to fall through to ptmalloc. At least one cause seems to be because some libraries dynamically load other libraries via dlopen() invoked with RTLD_DEEPBIND. Therefore, we override ptmalloc's hooks to pass through to TCMalloc. This is suboptimal since it adds an extra function call per malloc()/realloc()/free()/memalign() invocation, but it should catch all cases where the library does not correctly allow for malloc implementation overrides. BUG=38692 Review URL: http://codereview.chromium.org/1665005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44975 0039d316-1c4b-4281-b951-d872f2087c98
* TCMalloc: Delete unused files.willchan@chromium.org2010-04-194-2392/+0
| | | | | | | | | tcmalloc.gyp is replaced by allocator.gyp. tcmalloc_linux.cc, symbolize_linux.cc, and page_heap_linux.cc were unforked before, so they can be deleted. Review URL: http://codereview.chromium.org/1602029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44967 0039d316-1c4b-4281-b951-d872f2087c98
* Pass tools/licenses.py for more directories.evan@chromium.org2010-04-152-7/+34
| | | | | | | | | | | | | We're now down to only 4 dirs that don't pass the license checker. They will require separate changes. Modify the license checker to only print failing dirs. BUG=39240 Review URL: http://codereview.chromium.org/1530040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44656 0039d316-1c4b-4281-b951-d872f2087c98
* Set missing LF eol-style.evan@chromium.org2010-04-141-75/+75
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44539 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a few more places where we need to use our own allocator.markus@chromium.org2010-03-251-5/+15
| | | | | | | | | | Make tcmalloc compatible with the seccomp sandbox by avoiding making direct system calls from within tcmalloc. BUG=38973 TEST=none Review URL: http://codereview.chromium.org/1294001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42667 0039d316-1c4b-4281-b951-d872f2087c98
* Merged third_party/tcmalloc/vendor/src(google-perftools r87) intoglider@chromium.org2010-03-1851-824/+2179
| | | | | | | | | | third_party/tcmalloc/chromium/src. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41938 Review URL: http://codereview.chromium.org/576001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41950 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 41938 - Merged third_party/tcmalloc/vendor/src(googleperftools r87) intoglider@chromium.org2010-03-1851-2181/+824
| | | | | | | | | | | third_party/tcmalloc/chromium/src. Review URL: http://codereview.chromium.org/576001 TBR=glider@chromium.org Review URL: http://codereview.chromium.org/1076002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41942 0039d316-1c4b-4281-b951-d872f2087c98
* Merged third_party/tcmalloc/vendor/src(google-perftools r87) intoglider@chromium.org2010-03-1851-824/+2181
| | | | | | | | third_party/tcmalloc/chromium/src. Review URL: http://codereview.chromium.org/576001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41938 0039d316-1c4b-4281-b951-d872f2087c98
* make sure we don't include the obsolete 2008 SDK dir.nsylvain@chromium.org2010-03-021-1/+1
| | | | | | | | | | This is making the nacl 64 app to fail to build, because our code to make sure we use the lib64 folder fails because it does not except to have the sdk Lib dir twice (once for 2008, once for win7). Review URL: http://codereview.chromium.org/660314 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40379 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 38882 - Land http://codereview.chromium.org/576001 again temporarily.glider@chromium.org2010-02-1648-2045/+820
| | | | | | | | | | | TBR=jar,antonm Review URL: http://codereview.chromium.org/596083 TBR=glider@chromium.org Review URL: http://codereview.chromium.org/604063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39083 0039d316-1c4b-4281-b951-d872f2087c98
* Land http://codereview.chromium.org/576001 again temporarily.glider@chromium.org2010-02-1248-820/+2045
| | | | | | | | TBR=jar,antonm Review URL: http://codereview.chromium.org/596083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38882 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 38766 - Temporarily land http://codereview.chromium.org/576001 to ↵glider@chromium.org2010-02-1148-2045/+820
| | | | | | | | | | | | | | | check the performance. TBR=antonm,jar Review URL: http://codereview.chromium.org/597040 TBR=glider@chromium.org Review URL: http://codereview.chromium.org/598064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38772 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily land http://codereview.chromium.org/576001 to check theglider@chromium.org2010-02-1148-820/+2045
| | | | | | | | | | performance. TBR=antonm,jar Review URL: http://codereview.chromium.org/597040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38766 0039d316-1c4b-4281-b951-d872f2087c98
* Updated the third_party/tcmalloc/vendor revision to r87.glider@chromium.org2010-02-0465-10146/+6480
| | | | | | | | | This change should not affect any Chromium builds. TBR=willchan, sgk Review URL: http://codereview.chromium.org/570021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38090 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the size of buffer used by LogPrintf to 1600 bytes.glider@chromium.org2010-01-121-1/+1
| | | | | | | | | | 600 bytes is not enough to print full symbolized stacks of the memory leaks. TBR=willchan Review URL: http://codereview.chromium.org/550011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36011 0039d316-1c4b-4281-b951-d872f2087c98
* Removing the last remaining vsprops files (that are hooked in).bradnelson@google.com2010-01-041-2/+2
| | | | | | | | | | | | | Also pulling in a newer nacl version. Switching to use AdditionalOptions in list form. BUG=None TEST=None TBR=mmentovai Review URL: http://codereview.chromium.org/523027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35449 0039d316-1c4b-4281-b951-d872f2087c98
* Backported the HEAP_CHECK_MAX_LEAKS feature from the upstream perftools.glider@chromium.org2009-12-251-1/+7
| | | | | | | | This should allow the heapcheck bot to print all the leaks found. Review URL: http://codereview.chromium.org/522012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35274 0039d316-1c4b-4281-b951-d872f2087c98
* Made pprof executable and set the explicit path to it in the heapcheck runner.glider@chromium.org2009-12-241-0/+0
| | | | | | | TBR=willchan Review URL: http://codereview.chromium.org/515029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35262 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring build configurations - make it clearer and allow better support ↵gregoryd@google.com2009-12-221-2/+2
| | | | | | | | | | | | | for x64 on Windows TEST=none BUG=29467 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35012 Review URL: http://codereview.chromium.org/501127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35129 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35012 - Rearrange build configurations make it clearer and allow ↵gregoryd@google.com2009-12-191-2/+2
| | | | | | | | | | | | | | better support for x64 on Windows TEST=none BUG=29467 Review URL: http://codereview.chromium.org/501127 TBR=gregoryd@google.com Review URL: http://codereview.chromium.org/500149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35016 0039d316-1c4b-4281-b951-d872f2087c98
* Rearrange build configurations - make it clearer and allow better support ↵gregoryd@google.com2009-12-191-2/+2
| | | | | | | | | | | for x64 on Windows TEST=none BUG=29467 Review URL: http://codereview.chromium.org/501127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35012 0039d316-1c4b-4281-b951-d872f2087c98
* Provide for lazy commit of page-map meta-data in TCMallocjar@chromium.org2009-12-124-1/+208
| | | | | | | | | | | | | | | | | | Define a variant of the flat-map that was historically defined as PageMap1, which allocated about 4MB in an array to map all possible pages to their status as part of a span. This version (under Windows only) uses VirtualAlloc to effectively reserve the space, and then only commit the space when it is necessary to ensure it is available. The bulk of the code is almost directly modeled on PageMap1, which is also defined in pagemap.h. bug=30010 r=willchan Review URL: http://codereview.chromium.org/460155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34422 0039d316-1c4b-4281-b951-d872f2087c98
* Add linux_valgrind as a default trybot for tools/valgrind/memcheck/ and ↵timurrrr@chromium.org2009-12-041-0/+12
| | | | | | | | | | | | | third_party/tcmalloc/ Apart from annoying developers with try mail, I think this will make some allocation-related changes better tested. Also, this would help us check the correctness of suppressions (especially, if they are formatted incorrectly). TEST=try a changelist in tools/valgrind/memcheck/ or third_party/tcmalloc/ and notice linux_valgrind bot Review URL: http://codereview.chromium.org/465046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33828 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the old locations of forked tcmalloc files.sgk@chromium.org2009-12-0125-15379/+0
| | | | | | | | | | Remove the tcmalloc line from DEPS in favor of our vendor branch. Remove the old jemalloc checked in underneath tcmalloc. BUG=27911 TEST=none Review URL: http://codereview.chromium.org/457002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33506 0039d316-1c4b-4281-b951-d872f2087c98
* Point #include lines to files in the new tcmalloc/chromium local branch.sgk@chromium.org2009-12-011-2/+2
| | | | | | | | | Add +third_party\tcmalloc to webkit\DEPS. BUG=27911 TEST=none Review URL: http://codereview.chromium.org/449016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33440 0039d316-1c4b-4281-b951-d872f2087c98
* Fork a copy of the vanilla upstream copy of page_heap.cc renamed tosgk@chromium.org2009-11-262-0/+501
| | | | | | | | | | | page_heap_linux.cc, since the Linux build can't use the current Windows-specific version of page_heap.cc. Adds #ifdef in page_heap.h for API changes where the old API is still used by Linux and the new API is used by windows. BUG=27911 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33180 0039d316-1c4b-4281-b951-d872f2087c98
* Merge r77 from upstream tcmalloc to the local chromium branch.sgk@chromium.org2009-11-2519-734/+263
| | | | | | | | BUG=27911 TEST=none Review URL: http://codereview.chromium.org/440027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33151 0039d316-1c4b-4281-b951-d872f2087c98
* Match the vendor branch to the current tcmalloc rev in DEPS.sgk@chromium.org2009-11-2531-5227/+9389
| | | | | | | | BUG=27911 TEST=none Review URL: http://codereview.chromium.org/443010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33136 0039d316-1c4b-4281-b951-d872f2087c98
* Fix forked location of tcmalloc.h.sgk@chromium.org2009-11-251-0/+0
| | | | | | | BUG=27911 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33078 0039d316-1c4b-4281-b951-d872f2087c98
* Merge r33049 (symbolize_linux.cc) to new allocator structure.sgk@chromium.org2009-11-252-1/+191
| | | | | | | BUG=27911 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33074 0039d316-1c4b-4281-b951-d872f2087c98
* Gcc4 build fixes for tcmalloc.willchan@chromium.org2009-11-253-1/+194
| | | | | | Review URL: http://codereview.chromium.org/436042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33049 0039d316-1c4b-4281-b951-d872f2087c98
* Branch new tcmalloc_linux.cc into new chromium\src branch. Update newsgk@chromium.org2009-11-251-0/+1415
| | | | | | | | | base\allocator\allocator.gyp with merged changes from tcmalloc.gyp. BUG=27911 TEST=none Review URL: http://codereview.chromium.org/432021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33047 0039d316-1c4b-4281-b951-d872f2087c98
* Replace forked tcmalloc files with branches from current files tosgk@chromium.org2009-11-2510-434/+875
| | | | | | | | | preserve checkin history. svn cp the added config*.h files into the local patched branch. BUG=27911 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33031 0039d316-1c4b-4281-b951-d872f2087c98
* Branch tcmalloc\vendor\src to tcmalloc\chromium\src as basis for local changes.sgk@chromium.org2009-11-25163-0/+50530
| | | | | | | BUG=27911 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33024 0039d316-1c4b-4281-b951-d872f2087c98
* Import vanilla upstream tcmalloc sources into a vendor branchsgk@chromium.org2009-11-25274-0/+109616
| | | | | | | | | as a basis for local changes. BUG=27911 TEST=none Review URL: http://codereview.chromium.org/436037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33016 0039d316-1c4b-4281-b951-d872f2087c98
* Enable TCMalloc on Linux by default.willchan@chromium.org2009-11-252-0/+1422
| | | | | | | | | | This change also reworks the tcmalloc dependency to be added only to chrome and test_shell, instead of base. This is necessary since otherwise tcmalloc will be double initialized (by both the main executable and dlopen'd shared objects like the npapitestplugin.so). Add valgrind suppressions. This are invalid reads on static initialization in the VDSOSupport module. I haven't investigated it yet, but I suspect they're benign. BUG=http://crbug.com/28149, http://crbug.com/28385 Review URL: http://codereview.chromium.org/399081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33010 0039d316-1c4b-4281-b951-d872f2087c98
* Undo in-progress README + tcmalloc.gyp changes caught in last checkin.sgk@chromium.org2009-11-202-160/+115
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/419003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32652 0039d316-1c4b-4281-b951-d872f2087c98