0

Enable TCMalloc doubly-linked freelist in release buildsBUG=NoneTEST=None

Review URL: http://codereview.chromium.org/8242017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105312 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
jschuh@chromium.org
2011-10-13 16:49:23 +00:00
parent 7b2d3f5007
commit 42221b97a8
3 changed files with 6 additions and 7 deletions
base/allocator
third_party/tcmalloc/chromium/src

@ -266,10 +266,6 @@
},
},
'configurations': {
'Debug': {
'defines':
['TCMALLOC_USE_DOUBLYLINKED_FREELIST'],
},
'Debug_Base': {
'msvs_settings': {
'VCCLCompilerTool': {

@ -59,11 +59,11 @@
// head to NULL.
#ifdef TCMALLOC_USE_DOUBLYLINKED_FREELIST
#include <stddef.h>
#include "free_list.h"
#if defined(TCMALLOC_USE_DOUBLYLINKED_FREELIST)
// TODO(jar): We should use C++ rather than a macro here.
#define MEMORY_CHECK(v1, v2) \
if (v1 != v2) CRASH("Memory corruption detected.\n")

@ -43,9 +43,12 @@
#include "internal_logging.h" // For CRASH() macro.
#include "linked_list.h"
// Remove to enable singly linked lists (the default for open source tcmalloc).
#define TCMALLOC_USE_DOUBLYLINKED_FREELIST
namespace tcmalloc {
#ifdef TCMALLOC_USE_DOUBLYLINKED_FREELIST
#if defined(TCMALLOC_USE_DOUBLYLINKED_FREELIST)
// size class information for common.h.
static const bool kSupportsDoublyLinkedList = true;