summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 00:30:02 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 00:30:02 +0000
commit03baa08e42c7f4dd4f84ee573fa4fc7aa1281965 (patch)
tree07495d72116cb60b053f0a5da2b739d6e3f52803 /base
parent5815d4cbab80b2b1291e64eda3d12e5975fff939 (diff)
downloadchromium_src-03baa08e42c7f4dd4f84ee573fa4fc7aa1281965.zip
chromium_src-03baa08e42c7f4dd4f84ee573fa4fc7aa1281965.tar.gz
chromium_src-03baa08e42c7f4dd4f84ee573fa4fc7aa1281965.tar.bz2
Switch to using WinHeap for the browser process
Disabled the TCMalloc double-free detection, which should restore much of the performance loss caused by this experiment (to find double frees, if any). This should resolve bug 76640 As an alternate experiment to better illuminate our memory corruption problem, this CL also enables WinHeap (default Windows allocator) in the browser process. There is a chance that this will cause a very tiny reduction in performance, but it will surely increase our crash rate (based on what we saw recently on the dev channel). BUG=76640 r=rtenneti Review URL: http://codereview.chromium.org/6705027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/allocator/allocator_shim.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/allocator/allocator_shim.cc b/base/allocator/allocator_shim.cc
index 0bee3d3..97946e7 100644
--- a/base/allocator/allocator_shim.cc
+++ b/base/allocator/allocator_shim.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -41,7 +41,7 @@ typedef enum {
// See SetupSubprocessAllocator() to specify a default secondary (subprocess)
// allocator.
// TODO(jar): Switch to using TCMALLOC for the renderer as well.
-static Allocator allocator = TCMALLOC;
+static Allocator allocator = WINHEAP;
// The names of the environment variables that can optionally control the
// selection of the allocator. The primary may be used to control overall