summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorbxx@chromium.org <bxx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 01:56:30 +0000
committerbxx@chromium.org <bxx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 01:56:30 +0000
commita03403cd905774a57c99805c0fc44d725200077b (patch)
tree1257cfed16ce937944fb0a2829d177ba870ecb02 /base
parentbd624eb4c4060ce051aa46bf708513274061dc58 (diff)
downloadchromium_src-a03403cd905774a57c99805c0fc44d725200077b.zip
chromium_src-a03403cd905774a57c99805c0fc44d725200077b.tar.gz
chromium_src-a03403cd905774a57c99805c0fc44d725200077b.tar.bz2
tcmalloc doubly-linked free-lists for thread caches
Added the ability for free lists to be built out of doubly-linked lists in tcalloc. TCMALLOC_USE_DOUBLYLINKED_FREELIST flag must be set in order for doubly-linked lists to be used. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99515 Review URL: http://codereview.chromium.org/7671034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/allocator/allocator.gyp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp
index 97490ea..1428113 100644
--- a/base/allocator/allocator.gyp
+++ b/base/allocator/allocator.gyp
@@ -17,6 +17,7 @@
'<(tcmalloc_dir)/src',
'../..',
],
+ 'defines': ['TCMALLOC_USE_DOUBLYLINKED_FREELIST',],
'direct_dependent_settings': {
'configurations': {
'Common_Base': {
@@ -94,6 +95,8 @@
'<(tcmalloc_dir)/src/common.cc',
'<(tcmalloc_dir)/src/common.h',
'<(tcmalloc_dir)/src/debugallocation.cc',
+ '<(tcmalloc_dir)/src/free_list.cc',
+ '<(tcmalloc_dir)/src/free_list.h',
'<(tcmalloc_dir)/src/getpc.h',
'<(tcmalloc_dir)/src/google/heap-checker.h',
'<(tcmalloc_dir)/src/google/heap-profiler.h',